mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Merge pull request #1630 from smharper/omp_source_sampling
Sample source sites with shared memory parallelism
This commit is contained in:
commit
a7076138f2
1 changed files with 1 additions and 0 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue