Skip to content

Commit

Permalink
Merge pull request #6112 from tjhei/mpi-bcast
Browse files Browse the repository at this point in the history
change usage of MPI::broadcast
  • Loading branch information
gassmoeller authored Oct 28, 2024
2 parents 3a91bde + 0e3e28d commit bff42ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/simulator/parameters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1613,9 +1613,9 @@ namespace aspect
{
const std::string command = "lst setstripe -c " + std::to_string(lfs_stripe_count)
+ ' ' + output_directory;
const int error_code = system (command.c_str());

Utilities::MPI::broadcast(mpi_communicator, error_code, 0);
int error_code = system (command.c_str());
Utilities::MPI::broadcast(&error_code, 1, 0, mpi_communicator);

AssertThrow (error_code == 0,
ExcMessage ("Could not successfully execute the LFS file striping "
Expand All @@ -1626,7 +1626,7 @@ namespace aspect
else
{
int error_code;
error_code = Utilities::MPI::broadcast(mpi_communicator, error_code, 0);
Utilities::MPI::broadcast(&error_code, 1, 0, mpi_communicator);

if (error_code != 0)
throw QuietException();
Expand Down

0 comments on commit bff42ed

Please sign in to comment.