Skip to content

Commit

Permalink
fix MPI_Allreduce buffer aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Nov 11, 2024
1 parent fa39839 commit 1d144e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydro/hydro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ Real EstimateHyperbolicTimestep(MeshData<Real> *md) {
MPI_Op_create(ValPropPairMPIReducer, 1, &mpi_minloc_valproppair);

// do MPI reduction
MPI_Allreduce(&min_dt_hyperbolic, &min_dt_hyperbolic, 1, mpi_valproppair,
MPI_Allreduce(MPI_IN_PLACE, &min_dt_hyperbolic, 1, mpi_valproppair,
mpi_minloc_valproppair, MPI_COMM_WORLD);

if (parthenon::Globals::my_rank == 0) {
Expand Down

0 comments on commit 1d144e4

Please sign in to comment.