mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Add thread parallelism to tally accumulation
This commit is contained in:
parent
cd01829764
commit
bc90e6a122
1 changed files with 1 additions and 0 deletions
|
|
@ -642,6 +642,7 @@ void Tally::accumulate()
|
|||
double norm = total_source / (settings::n_particles * settings::gen_per_batch);
|
||||
|
||||
// Accumulate each result
|
||||
#pragma omp parallel for
|
||||
for (int i = 0; i < results_.shape()[0]; ++i) {
|
||||
for (int j = 0; j < results_.shape()[1]; ++j) {
|
||||
double val = results_(i, j, TallyResult::VALUE) * norm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue