Parallelize source site generation for fixed source calcs

This commit is contained in:
Paul Romano 2020-01-14 07:00:02 -06:00
parent f417f35809
commit a7d08364d3
6 changed files with 10 additions and 0 deletions

View file

@ -328,6 +328,7 @@ void free_memory_source()
void fill_source_bank_fixedsource()
{
if (settings::path_source.empty()) {
#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 + overall_generation()) *