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
Describe the bug
I get the following with a simple example:
---------------------------------------------
GENESIS - Version 4.6.5 has started...
Compile info: Compiled by runner at 2023-12-22 15:23:54 [UTC] from Git Commit ID:
Starting Time: Sat Dec 23 08:31:55 2023
MPI-Comm Size: 1 node
Opened input file genesis4.in
Parsing lattice file genesis4_drift.lat ...
Setting up time window of 71.8 microns with 718 sample points...
Adding profile with label: beamcurrent
Generating input particle distribution...
Running Core Simulation...
Time-dependent run with 718 slices for a time window of 71.8 microns
Initial analysis of electron beam and radiation field...
Calculation: 0% done
Writing output file...
Core Simulation done.
End of Track
Writing particle distribution to file: end.par.h5 ...
libc++abi: terminating due to uncaught exception of type std::out_of_range: vector
./run: line 1: 38534 Abort trap: 6 genesis4 genesis4.in
To Reproduce
Run genesis4 genesis4.in on the attached files
for (int ip=0; ip<npart;ip++){work[ip]=beam->beam.at(islice).at(ip*stride).gamma;}
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...
Describe the bug
I get the following with a simple example:
To Reproduce
Run
genesis4 genesis4.in
on the attached fileserror.zip
The text was updated successfully, but these errors were encountered: