From 5818ec363ed2b5997eae998cc5ebc1f570e0b0f4 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 26 Nov 2018 11:48:49 -0600 Subject: [PATCH] Fix MPI builds --- src/eigenvalue.cpp | 4 ++-- src/state_point.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eigenvalue.cpp b/src/eigenvalue.cpp index 3aa140a3c0..b3b8b850c1 100644 --- a/src/eigenvalue.cpp +++ b/src/eigenvalue.cpp @@ -269,7 +269,7 @@ void synchronize_bank() // asynchronous receive for the source sites requests.emplace_back(); - MPI_Irecv(&source_bank[index_local], static_cast(n), mpi::bank, + MPI_Irecv(&simulation::source_bank[index_local], static_cast(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 diff --git a/src/state_point.cpp b/src/state_point.cpp index ce1c238369..a808e3ef59 100644 --- a/src/state_point.cpp +++ b/src/state_point.cpp @@ -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