Skip to content

Commit

Permalink
Fix number of counted scintillation particles
Browse files Browse the repository at this point in the history
Co-authored-by: Amanda Lund <alund@anl.gov>
  • Loading branch information
stognini and amandalund committed Mar 27, 2024
1 parent 1def7e8 commit c7c34b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celeritas/optical/ScintillationParams.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ScintillationParams::from_import(ImportData const& data,
}
}
// Resize particle- and material-dependent spectra
auto const num_scint_particles = scintpid.get() + 1;
auto const num_scint_particles = scintpid.get();
input.particles.resize(num_scint_particles * num_optmats);
}
else
Expand Down

0 comments on commit c7c34b6

Please sign in to comment.