mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Use more 0-based indexing for tallies
This commit is contained in:
parent
743db3c02e
commit
8b3be55f0e
9 changed files with 77 additions and 102 deletions
|
|
@ -546,7 +546,7 @@ void calculate_work()
|
|||
#ifdef OPENMC_MPI
|
||||
void broadcast_results() {
|
||||
// Broadcast tally results so that each process has access to results
|
||||
for (int i = 1; i <= n_tallies; ++i) {
|
||||
for (int i = 0; i < n_tallies; ++i) {
|
||||
// Create a new datatype that consists of all values for a given filter
|
||||
// bin and then use that to broadcast. This is done to minimize the
|
||||
// chance of the 'count' argument of MPI_BCAST exceeding 2**31
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue