Skip to content

Commit

Permalink
Fix block placement according to g5t comment in #1621
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Willendrup committed Sep 13, 2024
1 parent 6a10c9c commit 4627ee0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mcstas-comps/misc/MCPL_output.comp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,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 @@ -436,15 +445,6 @@ FINALLY
free(mpi_node_files);
}
);
#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
if(verbose) {
MPI_MASTER(
Expand Down

0 comments on commit 4627ee0

Please sign in to comment.