mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
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:
parent
68a834f780
commit
899ca376f4
1 changed files with 4 additions and 2 deletions
|
|
@ -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_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue