From b27e086911ef8784dc121dbd3826f53ad342288f Mon Sep 17 00:00:00 2001 From: Noel Chalmers Date: Fri, 13 Oct 2023 18:34:59 -0500 Subject: [PATCH] [Hotfix] Use inline static const to workaround OpenMPI when compiling with g++-12 Co-authored-by: Paul T. Bauman --- include/comm.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/comm.hpp b/include/comm.hpp index 4cd03dddc..cd0084ec9 100644 --- a/include/comm.hpp +++ b/include/comm.hpp @@ -72,13 +72,13 @@ namespace Comm { /*Predefined ops*/ using op_t = MPI_Op; - static constexpr op_t Max = MPI_MAX; - static constexpr op_t Min = MPI_MIN; - static constexpr op_t Sum = MPI_SUM; - static constexpr op_t Prod = MPI_PROD; - static constexpr op_t And = MPI_LAND; - static constexpr op_t Or = MPI_LOR; - static constexpr op_t Xor = MPI_LXOR; + inline static const op_t Max = MPI_MAX; + inline static const op_t Min = MPI_MIN; + inline static const op_t Sum = MPI_SUM; + inline static const op_t Prod = MPI_PROD; + inline static const op_t And = MPI_LAND; + inline static const op_t Or = MPI_LOR; + inline static const op_t Xor = MPI_LXOR; /*MPI_Init and MPI_Finalize*/ void Init(int &argc, char** &argv);