You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do proper mapping from linearized index to cell coordinates in pulsed decay collision module (#6827)
The pulsed decay collision module (PR #6558) evaluates a space- and
time-dependent decay rate using the parser. It reconstructs cell
coordinates from a linearized index `i_cell` returned by
`ParticleUtils::findParticlesInEachCell()`. However,
`ParticleUtils::findParticlesInEachCell()` (via `amrex::DenseBins`) and
`amrex::Box::atOffset` use different index orderings (z-fastest vs.
x-fastest). The original implementation mixed these conventions,
resulting in incorrect cell indices and thus incorrect physical
coordinates passed to the parser.
This PR fixes the bug by using a consistent indexing convention when
mapping `i_cell` back to cell coordinates.
0 commit comments