mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
incorporated code review changes
This commit is contained in:
parent
08ce3f4614
commit
428bab4fd2
14 changed files with 82 additions and 79 deletions
|
|
@ -270,11 +270,10 @@ void initialize_source()
|
|||
// initialize random number seed
|
||||
int64_t id = simulation::total_gen*settings::n_particles +
|
||||
simulation::work_index[mpi::rank] + i + 1;
|
||||
uint64_t prn_seed;
|
||||
init_seed(id, &prn_seed, STREAM_SOURCE);
|
||||
uint64_t seed = init_seed(id, STREAM_SOURCE);
|
||||
|
||||
// sample external source distribution
|
||||
simulation::source_bank[i] = sample_external_source(&prn_seed);
|
||||
simulation::source_bank[i] = sample_external_source(&seed);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -331,11 +330,10 @@ void fill_source_bank_fixedsource()
|
|||
// initialize random number seed
|
||||
int64_t id = (simulation::total_gen + overall_generation()) *
|
||||
settings::n_particles + simulation::work_index[mpi::rank] + i + 1;
|
||||
uint64_t prn_seed;
|
||||
init_seed(id, &prn_seed, STREAM_SOURCE);
|
||||
uint64_t seed = init_seed(id, STREAM_SOURCE);
|
||||
|
||||
// sample external source distribution
|
||||
simulation::source_bank[i] = sample_external_source(&prn_seed);
|
||||
simulation::source_bank[i] = sample_external_source(&seed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue