fix: reject aliased cell-list layouts#274
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #274 +/- ##
=======================================
Coverage 89.23% 89.24%
=======================================
Files 286 286
Lines 11025 11033 +8
Branches 3432 3437 +5
=======================================
+ Hits 9838 9846 +8
Misses 1147 1147
Partials 40 40 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
⚡ Performance (instruction count) — ✅ no regressionsper-benchmark breakdown
Deterministic callgrind instruction counts vs the base branch; gated at ±2%. Not wall-clock. |
ape33
requested changes
Jun 22, 2026
ape33
approved these changes
Jun 29, 2026
97gamjak
previously requested changes
Jul 3, 2026
galjos
dismissed
97gamjak’s stale review
July 21, 2026 12:03
Requested change addressed in eddea27; review re-requested.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
The half-neighbor cell-list stencil assumes enough cells per dimension to represent each neighbor offset without wrapping onto already represented cells. If
nCells < 2 * nNeighbourCells + 1, periodic wrapping can alias offsets and make the neighbor list mathematically invalid.Validation
cmake --build build-stochastic-rescale-ci --target testCelllist testCelllistSetup --parallel 4ctest --test-dir build-stochastic-rescale-ci -R '^(testCelllist|testCelllistSetup)$' --output-on-failureReference