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:
John Tramm 2019-11-22 16:17:46 +00:00
parent 3b985f1976
commit ecb5f828d2
5 changed files with 29 additions and 68 deletions

View file

@ -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