Skip to content

Commit b2e42f8

Browse files
committed
Fix non-MPI build bug
1 parent e5d8906 commit b2e42f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interface/swarm_comms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ bool Swarm::Receive(BoundaryCommSubset phase) {
434434

435435
void Swarm::ResetCommunication() {
436436
auto pmb = GetBlockPointer();
437-
#ifdef MPI_PARALLEL
438437
const auto &neighbors = pmb->GetNeighbors();
438+
#ifdef MPI_PARALLEL
439439
for (int n = 0; n < neighbors.size(); n++) {
440440
const NeighborBlock &nb = neighbors[n];
441441
if (vbswarm->bd_var_.req_send[nb.bufid] != MPI_REQUEST_NULL) {

0 commit comments

Comments
 (0)