mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Parallelize source site generation for fixed source calcs
This commit is contained in:
parent
f417f35809
commit
a7d08364d3
6 changed files with 10 additions and 0 deletions
|
|
@ -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()) *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue