fixed bug for fixed source computations, where at particle death they were attempting to record number of progeny to array that is not allocated unless doing an eigenvalue computation. The fix is just to only perform this tallying if doing an eigenvalue sim.

This commit is contained in:
John Tramm 2020-01-17 16:26:05 +00:00
parent 68a834f780
commit 899ca376f4

View file

@ -394,8 +394,10 @@ Particle::event_death()
// Record the number of progeny created by this particle.
// This data will be used to efficiently sort the fission bank.
int64_t offset = id_ - 1 - simulation::work_index[mpi::rank];
simulation::progeny_per_particle[offset] = n_progeny_;
if (settings::run_mode == RUN_MODE_EIGENVALUE) {
int64_t offset = id_ - 1 - simulation::work_index[mpi::rank];
simulation::progeny_per_particle[offset] = n_progeny_;
}
}