diff --git a/src/hydro/hydro.hpp b/src/hydro/hydro.hpp index 76ea254e..cc2101b5 100644 --- a/src/hydro/hydro.hpp +++ b/src/hydro/hydro.hpp @@ -107,6 +107,8 @@ struct ValPropPair { }; typedef ValPropPair valprop_reduce_type; + +#ifdef MPI_PARALLEL inline void ValPropPairMPIReducer(void *in, void *inout, int *len, MPI_Datatype *type) { valprop_reduce_type *invals = static_cast(in); valprop_reduce_type *inoutvals = static_cast(inout); @@ -117,6 +119,7 @@ inline void ValPropPairMPIReducer(void *in, void *inout, int *len, MPI_Datatype } } }; +#endif // MPI_PARALLEL } // namespace Hydro