mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
removed some comments. Also attempted to fix the math unit tests that now require direct passing of seeds and stream variables
This commit is contained in:
parent
3b985f1976
commit
ecb5f828d2
5 changed files with 29 additions and 68 deletions
|
|
@ -473,13 +473,9 @@ void initialize_history(Particle* p, int64_t index_source)
|
|||
// set identifier for particle
|
||||
p->id_ = simulation::work_index[mpi::rank] + index_source;
|
||||
|
||||
// TODO: Why doesn't this include the particle skip offset?
|
||||
// ANSWER: Stride is included in the set seed function, which actually forwards based
|
||||
// on the master_seed.
|
||||
// set random number seed
|
||||
int64_t particle_seed = (simulation::total_gen + overall_generation() - 1)
|
||||
* settings::n_particles + p->id_;
|
||||
//set_particle_seed(particle_seed);
|
||||
set_particle_seed(particle_seed, p->prn_seeds);
|
||||
|
||||
// set particle trace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue