mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Pulse height tally for photons (#2452)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
97414699fd
commit
e3cd406a9b
18 changed files with 538 additions and 12 deletions
|
|
@ -550,6 +550,9 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
// Reset weight window ratio
|
||||
p.ww_factor() = 0.0;
|
||||
|
||||
// Reset pulse_height_storage
|
||||
std::fill(p.pht_storage().begin(), p.pht_storage().end(), 0);
|
||||
|
||||
// set random number seed
|
||||
int64_t particle_seed =
|
||||
(simulation::total_gen + overall_generation() - 1) * settings::n_particles +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue