mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fix MPI builds
This commit is contained in:
parent
9fa16bc831
commit
5818ec363e
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue