From 899ca376f4133791337659b7a303c2dce7ad954d Mon Sep 17 00:00:00 2001 From: John Tramm Date: Fri, 17 Jan 2020 16:26:05 +0000 Subject: [PATCH] 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. --- src/particle.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/particle.cpp b/src/particle.cpp index d30c9b4524..7fc4d0a306 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -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_; + } }