Fix MPI builds

This commit is contained in:
Paul Romano 2018-11-26 11:48:49 -06:00
parent 9fa16bc831
commit 5818ec363e
2 changed files with 4 additions and 4 deletions

View file

@ -269,7 +269,7 @@ void synchronize_bank()
// asynchronous receive for the source sites
requests.emplace_back();
MPI_Irecv(&source_bank[index_local], static_cast<int>(n), mpi::bank,
MPI_Irecv(&simulation::source_bank[index_local], static_cast<int>(n), mpi::bank,
neighbor, neighbor, mpi::intracomm, &requests.back());
} else {
@ -278,7 +278,7 @@ void synchronize_bank()
index_temp = start - bank_position[mpi::rank];
std::copy(&temp_sites[index_temp], &temp_sites[index_temp + n],
&source_bank[index_local]);
&simulation::source_bank[index_local]);
}
// Increment all indices

View file

@ -133,7 +133,7 @@ write_source_bank(hid_t group_id)
#ifdef OPENMC_MPI
// Receive source sites from other processes
if (i > 0)
MPI_Recv(source_bank.data(), count[0], mpi::bank, i, i,
MPI_Recv(simulation::source_bank.data(), count[0], mpi::bank, i, i,
mpi::intracomm, MPI_STATUS_IGNORE);
#endif
@ -155,7 +155,7 @@ write_source_bank(hid_t group_id)
#ifdef OPENMC_MPI
// Restore state of source bank
std::copy(temp_source.begin(), temp_source.end(), source_bank.begin());
std::copy(temp_source.begin(), temp_source.end(), simulation::source_bank.begin());
#endif
} else {
#ifdef OPENMC_MPI