Skip to content

Commit

Permalink
fixup: add hdf5 subfiling status to example print
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 12, 2024
1 parent 3e4b1aa commit 1a749b0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ void hdf5OutputSubfiling()
{
if ( h5_config.subfiling )
{
if ( comm_rank == 0 )
std::cout << "Using HDF5 subfiling.\n" << std::endl;

MPI_Comm shmcomm;
MPI_Comm_split_type( MPI_COMM_WORLD, MPI_COMM_TYPE_SHARED,
0, MPI_INFO_NULL, &shmcomm );
Expand Down Expand Up @@ -224,6 +227,12 @@ void hdf5OutputSubfiling()
execvp( args[0], args );
}
}
else
{
if ( comm_rank == 0 )
std::cout << "HDF5 subfiling disabled.\n"
<< std::endl;
}
MPI_Comm_free( &shmcomm );
}
}
Expand Down

0 comments on commit 1a749b0

Please sign in to comment.