Skip to content

Commit

Permalink
add MPI_PARALLEL ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Nov 16, 2024
1 parent 021767d commit 5cacbba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hydro/hydro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ struct ValPropPair {
};

typedef ValPropPair<Real, CellPrimValues> valprop_reduce_type;

#ifdef MPI_PARALLEL
inline void ValPropPairMPIReducer(void *in, void *inout, int *len, MPI_Datatype *type) {
valprop_reduce_type *invals = static_cast<valprop_reduce_type *>(in);
valprop_reduce_type *inoutvals = static_cast<valprop_reduce_type *>(inout);
Expand All @@ -117,6 +119,7 @@ inline void ValPropPairMPIReducer(void *in, void *inout, int *len, MPI_Datatype
}
}
};
#endif // MPI_PARALLEL

} // namespace Hydro

Expand Down

0 comments on commit 5cacbba

Please sign in to comment.