Skip to content

Commit

Permalink
wrong ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Sep 5, 2024
1 parent 27cad27 commit 239d4d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utilities/replay/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void load_actions(const std::string &file_name, int mpi_comm_id, conduit::Node &
{
int comm_size = 1;
int rank = 0;
#ifdef ASCENT_MPI_ENABLED
#ifdef ASCENT_REPLAY_MPI
if(mpi_comm_id == -1)
{
// do nothing, an error will be thrown later
Expand All @@ -176,7 +176,7 @@ void load_actions(const std::string &file_name, int mpi_comm_id, conduit::Node &
{
has_file = 1;
}
#ifdef ASCENT_MPI_ENABLED
#ifdef ASCENT_REPLAY_MPI
MPI_Bcast(&has_file, 1, MPI_INT, 0, mpi_comm);
#endif
if(has_file == 0)
Expand Down Expand Up @@ -220,7 +220,7 @@ void load_actions(const std::string &file_name, int mpi_comm_id, conduit::Node &
}
}

#ifdef ASCENT_MPI_ENABLED
#ifdef ASCENT_REPLAY_MPI
// make sure all ranks error if the parsing on rank 0 failed.
MPI_Bcast(&actions_file_valid, 1, MPI_INT, 0, mpi_comm);
#endif
Expand All @@ -231,7 +231,7 @@ void load_actions(const std::string &file_name, int mpi_comm_id, conduit::Node &
ASCENT_ERROR("Failed to load actions file: " << file_name
<< "\n" << emsg);
}
#ifdef ASCENT_MPI_ENABLED
#ifdef ASCENT_REPLAY_MPI
relay::mpi::broadcast_using_schema(actions, 0, mpi_comm);
#endif
}
Expand Down

0 comments on commit 239d4d6

Please sign in to comment.