Skip to content

Commit

Permalink
Fix along the lines of discussion in #1621
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Sep 13, 2024
1 parent 4627ee0 commit 7422d37
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mcxtrace-comps/misc/MCPL_output.comp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,15 @@ SAVE

FINALLY
%{
#ifdef USE_MPI
if (merge_mpi && mpi_node_count > 1) {
mcpl_close_outfile(outputfile);
} else {
mcpl_closeandgzip_outfile(outputfile);
}
#else
mcpl_closeandgzip_outfile(outputfile);
#endif
#ifdef USE_MPI
MPI_Barrier(MPI_COMM_WORLD);
MPI_MASTER(
Expand Down Expand Up @@ -390,15 +399,6 @@ FINALLY
}
);
#endif
#ifdef USE_MPI
if (merge_mpi && mpi_node_count > 1) {
mcpl_close_outfile(outputfile);
} else {
mcpl_closeandgzip_outfile(outputfile);
}
#else
mcpl_closeandgzip_outfile(outputfile);
#endif
%}

MCDISPLAY
Expand Down

0 comments on commit 7422d37

Please sign in to comment.