Closed ChristopherMayes closed 7 months ago
This is being thrown on this line: https://github.com/svenreiche/Genesis-1.3-Version4/blob/694c1d0c7d9d6a49f93e88ecc5629f9f4d970bce/src/IO/writeBeamHDF5.cpp#L92
This happens at beam->beam.at(islice).at(ip*stride)
where ip*stride=128
is over the number of particles (127).
npart
is also 256, which means this isn't just an off-by-one error.
The input file states npart 128
, so where is npart = 256
coming in? Hmm...
git bisect
indicates 88f7200c13ce2e929cf725fa3857a56ae946acf5 is the commit that introduced this issue:
$ git bisect good
88f7200c13ce2e929cf725fa3857a56ae946acf5 is the first bad commit
commit 88f7200c13ce2e929cf725fa3857a56ae946acf5
Author: reiche <sven.reiche@psi.ch>
Date: Wed Dec 6 15:17:12 2023 +0100
Added downsamplig ability for particle dumps.
CHANGELOG.md | 10 +++++++++-
include/writeBeamHDF5.h | 2 +-
manual/MAIN_INPUT.md | 1 +
src/Core/Control.cpp | 2 +-
src/IO/writeBeamHDF5.cpp | 20 +++++++++++---------
src/Main/Dump.cpp | 7 ++++++-
6 files changed, 29 insertions(+), 13 deletions(-)
Describe the bug I get the following with a simple example:
To Reproduce Run
genesis4 genesis4.in
on the attached fileserror.zip