Skip to content

Commit

Permalink
Fix hang at startup/first output in KHARMA downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Prather committed Nov 27, 2023
1 parent cafe557 commit b40ea06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/outputs/outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ void OutputType::ClearOutputData() {
void Outputs::MakeOutputs(Mesh *pm, ParameterInput *pin, SimTime *tm,
const SignalHandler::OutputSignal signal) {
Kokkos::Profiling::pushRegion("MakeOutputs");
MPI_Barrier(MPI_COMM_WORLD);
bool first = true;
OutputType *ptype = pfirst_type_;
while (ptype != nullptr) {
Expand All @@ -429,6 +430,7 @@ void Outputs::MakeOutputs(Mesh *pm, ParameterInput *pin, SimTime *tm,
}
ptype = ptype->pnext_type; // move to next OutputType node in singly linked list
}
MPI_Barrier(MPI_COMM_WORLD);
Kokkos::Profiling::popRegion(); // MakeOutputs
}

Expand Down

0 comments on commit b40ea06

Please sign in to comment.