Sample source sites in parallel

This commit is contained in:
Sterling Harper 2020-08-05 18:34:12 -04:00
parent 537fe98258
commit a5ef3dc405

View file

@ -292,6 +292,7 @@ void initialize_source()
} else {
// Generation source sites from specified distribution in user input
#pragma omp parallel for
for (int64_t i = 0; i < simulation::work_per_rank; ++i) {
// initialize random number seed
int64_t id = simulation::total_gen*settings::n_particles +