From e101382321c84c352caa10730e1ddb455eccd693 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Wed, 10 Jul 2024 22:45:58 +0200 Subject: [PATCH] Add USE_MPI compilation flag when MPI is enabled --- build/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/configure.ac b/build/configure.ac index 2acdc471..9b8c8752 100644 --- a/build/configure.ac +++ b/build/configure.ac @@ -274,6 +274,7 @@ AC_ARG_ENABLE( [ AC_MSG_NOTICE([Handling implicit option.]) AX_PROG_CXX_MPI() + AC_SUBST([MPIFLAGS], [-DUSE_MPI]) ] ) AS_IF( @@ -378,7 +379,7 @@ AC_ARG_WITH( ) FFLAGS="-std=legacy -O3" -CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul -I$HDF5_INCLUDE $OMPFLAGS $LAPACKFLAGS $MAGMAFLAGS" +CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul -I$HDF5_INCLUDE $MPIFLAGS $OMPFLAGS $LAPACKFLAGS $MAGMAFLAGS" SUBDIRS="cluster libnptm sphere testing trapping" # Send output to Makefiles -- GitLab