mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
Sample source sites in parallel
This commit is contained in:
parent
537fe98258
commit
a5ef3dc405
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