From 5cacbbae6b0291c9e81cf74107ecf0b4b48cd6b2 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Sat, 16 Nov 2024 15:11:56 -0500 Subject: [PATCH] add MPI_PARALLEL ifdef --- src/hydro/hydro.hpp | 3 +++ 1 file changed, 3 insertions(+) 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