diff --git a/build_config/Cygwin.g95.default/build_rules.mk b/build_config/Cygwin.g95.default/build_rules.mk index 4cc6386f38..35b59557f3 100644 --- a/build_config/Cygwin.g95.default/build_rules.mk +++ b/build_config/Cygwin.g95.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -63,8 +59,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Cygwin.gfortran.default/build_rules.mk b/build_config/Cygwin.gfortran.default/build_rules.mk index 3d4fffd3d3..7fad49a1eb 100644 --- a/build_config/Cygwin.gfortran.default/build_rules.mk +++ b/build_config/Cygwin.gfortran.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -63,8 +59,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),msmpi) # Microsofts version of MPICH2 on CCS 2003 is generally at: diff --git a/build_config/Darwin.absoft.default/build_rules.mk b/build_config/Darwin.absoft.default/build_rules.mk index 7aea816bf9..2a568fce09 100644 --- a/build_config/Darwin.absoft.default/build_rules.mk +++ b/build_config/Darwin.absoft.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.g95.default/build_rules.mk b/build_config/Darwin.g95.default/build_rules.mk index c75b1d9f84..8189b5ec0d 100644 --- a/build_config/Darwin.g95.default/build_rules.mk +++ b/build_config/Darwin.g95.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -72,8 +68,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.gfortran.default/build_rules.mk b/build_config/Darwin.gfortran.default/build_rules.mk index 76d5f91b82..d9ca7f54b1 100644 --- a/build_config/Darwin.gfortran.default/build_rules.mk +++ b/build_config/Darwin.gfortran.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.gfortranclang.default/build_rules.mk b/build_config/Darwin.gfortranclang.default/build_rules.mk index 33670d6386..8f2fa61613 100644 --- a/build_config/Darwin.gfortranclang.default/build_rules.mk +++ b/build_config/Darwin.gfortranclang.default/build_rules.mk @@ -39,8 +39,6 @@ ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_CLINKERDEFAULT = mpiCC ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -50,8 +48,6 @@ ESMF_CDEFAULT = mpicc ESMF_CLINKERDEFAULT = mpicxx ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -82,8 +78,6 @@ ESMF_CDEFAULT = mpicc ESMF_CLINKERDEFAULT = mpic++ ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.intel.default/build_rules.mk b/build_config/Darwin.intel.default/build_rules.mk index 249964083f..2711570391 100644 --- a/build_config/Darwin.intel.default/build_rules.mk +++ b/build_config/Darwin.intel.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -79,8 +75,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.intelclang.default/build_rules.mk b/build_config/Darwin.intelclang.default/build_rules.mk index c98094a263..e08de826c7 100644 --- a/build_config/Darwin.intelclang.default/build_rules.mk +++ b/build_config/Darwin.intelclang.default/build_rules.mk @@ -36,8 +36,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -46,8 +44,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -74,8 +70,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.intelgcc.default/build_rules.mk b/build_config/Darwin.intelgcc.default/build_rules.mk index 9e7a16076f..5cbc110ae0 100644 --- a/build_config/Darwin.intelgcc.default/build_rules.mk +++ b/build_config/Darwin.intelgcc.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.nag.default/build_rules.mk b/build_config/Darwin.nag.default/build_rules.mk index c921770209..fa25523599 100644 --- a/build_config/Darwin.nag.default/build_rules.mk +++ b/build_config/Darwin.nag.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.pgi.default/build_rules.mk b/build_config/Darwin.pgi.default/build_rules.mk index 2503e0cd36..bb64511632 100644 --- a/build_config/Darwin.pgi.default/build_rules.mk +++ b/build_config/Darwin.pgi.default/build_rules.mk @@ -44,8 +44,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -54,8 +52,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -90,8 +86,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.xlf.default/build_rules.mk b/build_config/Darwin.xlf.default/build_rules.mk index 357895daab..fc3b9af0ea 100644 --- a/build_config/Darwin.xlf.default/build_rules.mk +++ b/build_config/Darwin.xlf.default/build_rules.mk @@ -36,8 +36,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -46,8 +44,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -66,8 +62,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Darwin.xlfgcc.default/build_rules.mk b/build_config/Darwin.xlfgcc.default/build_rules.mk index c615ea01e7..b14e4d4865 100644 --- a/build_config/Darwin.xlfgcc.default/build_rules.mk +++ b/build_config/Darwin.xlfgcc.default/build_rules.mk @@ -36,8 +36,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -46,8 +44,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -66,8 +62,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/IRIX64.default.default/build_rules.mk b/build_config/IRIX64.default.default/build_rules.mk index 4b2e291d70..3855a0aa01 100644 --- a/build_config/IRIX64.default.default/build_rules.mk +++ b/build_config/IRIX64.default.default/build_rules.mk @@ -35,8 +35,6 @@ ifeq ($(ESMF_COMM),mpi) ESMF_F90LINKLIBS += -lmpi++ -lmpi ESMF_CXXLINKLIBS += -lmpi++ -lmpi ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),user) # User specified flags ------------------------------------- diff --git a/build_config/Linux.absoft.default/build_rules.mk b/build_config/Linux.absoft.default/build_rules.mk index 3412bd8c9a..7800a154d4 100644 --- a/build_config/Linux.absoft.default/build_rules.mk +++ b/build_config/Linux.absoft.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -70,8 +66,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.absoftintel.default/build_rules.mk b/build_config/Linux.absoftintel.default/build_rules.mk index e30a57b000..cdfe2d2d60 100644 --- a/build_config/Linux.absoftintel.default/build_rules.mk +++ b/build_config/Linux.absoftintel.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -62,8 +58,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.aocc.default/build_rules.mk b/build_config/Linux.aocc.default/build_rules.mk index 0976345dd9..2573709d0d 100644 --- a/build_config/Linux.aocc.default/build_rules.mk +++ b/build_config/Linux.aocc.default/build_rules.mk @@ -55,8 +55,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -65,8 +63,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -92,8 +88,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.arm.default/build_rules.mk b/build_config/Linux.arm.default/build_rules.mk index 785a889264..59df706f20 100644 --- a/build_config/Linux.arm.default/build_rules.mk +++ b/build_config/Linux.arm.default/build_rules.mk @@ -53,8 +53,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -63,8 +61,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -90,8 +86,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.g95.default/build_rules.mk b/build_config/Linux.g95.default/build_rules.mk index aa6c2ff11f..b023c6bdc8 100644 --- a/build_config/Linux.g95.default/build_rules.mk +++ b/build_config/Linux.g95.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.gfortran.default/build_rules.mk b/build_config/Linux.gfortran.default/build_rules.mk index c4a9e39f5b..ca7e355f67 100644 --- a/build_config/Linux.gfortran.default/build_rules.mk +++ b/build_config/Linux.gfortran.default/build_rules.mk @@ -50,8 +50,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -60,8 +58,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -95,8 +91,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.gfortranclang.default/build_rules.mk b/build_config/Linux.gfortranclang.default/build_rules.mk index a713192bf9..1585667530 100644 --- a/build_config/Linux.gfortranclang.default/build_rules.mk +++ b/build_config/Linux.gfortranclang.default/build_rules.mk @@ -53,8 +53,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -63,8 +61,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -90,8 +86,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.intel.default/build_rules.mk b/build_config/Linux.intel.default/build_rules.mk index 4c81afa507..2b27b21cfb 100644 --- a/build_config/Linux.intel.default/build_rules.mk +++ b/build_config/Linux.intel.default/build_rules.mk @@ -50,8 +50,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -60,8 +58,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -94,8 +90,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),lam) # LAM (assumed to be built with ifort) --------------------- @@ -105,8 +99,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.intelgcc.default/build_rules.mk b/build_config/Linux.intelgcc.default/build_rules.mk index 2ac2fdbf76..82498710f7 100644 --- a/build_config/Linux.intelgcc.default/build_rules.mk +++ b/build_config/Linux.intelgcc.default/build_rules.mk @@ -49,8 +49,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -59,8 +57,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -95,8 +91,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.lahey.default/build_rules.mk b/build_config/Linux.lahey.default/build_rules.mk index 62b4f78b68..22c29e0d6f 100644 --- a/build_config/Linux.lahey.default/build_rules.mk +++ b/build_config/Linux.lahey.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -71,8 +67,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.llvm.default/build_rules.mk b/build_config/Linux.llvm.default/build_rules.mk index f4ea0cfe6b..dd0b64ccde 100644 --- a/build_config/Linux.llvm.default/build_rules.mk +++ b/build_config/Linux.llvm.default/build_rules.mk @@ -53,8 +53,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -63,8 +61,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -90,8 +86,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.nag.default/build_rules.mk b/build_config/Linux.nag.default/build_rules.mk index 725b516ac8..ac0ba3e988 100644 --- a/build_config/Linux.nag.default/build_rules.mk +++ b/build_config/Linux.nag.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -70,8 +66,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.nagintel.default/build_rules.mk b/build_config/Linux.nagintel.default/build_rules.mk index 9af3a5d79e..66ee2c09e9 100644 --- a/build_config/Linux.nagintel.default/build_rules.mk +++ b/build_config/Linux.nagintel.default/build_rules.mk @@ -33,8 +33,6 @@ ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -43,8 +41,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -62,8 +58,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.nvhpc.default/build_rules.mk b/build_config/Linux.nvhpc.default/build_rules.mk index 07981a9a8b..bfdac6b82e 100644 --- a/build_config/Linux.nvhpc.default/build_rules.mk +++ b/build_config/Linux.nvhpc.default/build_rules.mk @@ -56,8 +56,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -66,8 +64,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- diff --git a/build_config/Linux.pathscale.default/build_rules.mk b/build_config/Linux.pathscale.default/build_rules.mk index 1cc8bd0605..90ab51b9a6 100644 --- a/build_config/Linux.pathscale.default/build_rules.mk +++ b/build_config/Linux.pathscale.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich++ ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -63,8 +59,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.pgi.default/build_rules.mk b/build_config/Linux.pgi.default/build_rules.mk index c3a04a51d6..30def7de70 100644 --- a/build_config/Linux.pgi.default/build_rules.mk +++ b/build_config/Linux.pgi.default/build_rules.mk @@ -61,8 +61,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -71,8 +69,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -113,8 +109,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),lam) # LAM (assumed to be built with pgf90) --------------------- @@ -124,8 +118,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.pgigcc.default/build_rules.mk b/build_config/Linux.pgigcc.default/build_rules.mk index 26185a048e..77cfe5ce18 100644 --- a/build_config/Linux.pgigcc.default/build_rules.mk +++ b/build_config/Linux.pgigcc.default/build_rules.mk @@ -34,8 +34,6 @@ ESMF_F90LINKLIBS += -lpmpich++ -lmpich ESMF_CXXDEFAULT = mpiCC ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich2) # Mpich2 --------------------------------------------------- @@ -44,8 +42,6 @@ ESMF_CXXDEFAULT = mpicxx ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),mpich) # Mpich3 and up -------------------------------------------- @@ -64,8 +60,6 @@ ESMF_CXXDEFAULT = mpic++ ESMF_CDEFAULT = mpicc ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),openmpi) # OpenMPI -------------------------------------------------- diff --git a/build_config/Linux.sxcross.default/build_rules.mk b/build_config/Linux.sxcross.default/build_rules.mk index 611b4545a6..17c14b91b2 100644 --- a/build_config/Linux.sxcross.default/build_rules.mk +++ b/build_config/Linux.sxcross.default/build_rules.mk @@ -29,8 +29,6 @@ else ifeq ($(ESMF_COMM),mpi) # Vendor MPI ----------------------------------------------- ESMF_MPIRUNDEFAULT = mpirun.sx -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),user) # User specified flags ------------------------------------- diff --git a/build_config/OSF1.default.default/build_rules.mk b/build_config/OSF1.default.default/build_rules.mk index 9e25bb598c..d97abf3dd6 100644 --- a/build_config/OSF1.default.default/build_rules.mk +++ b/build_config/OSF1.default.default/build_rules.mk @@ -30,8 +30,6 @@ ESMF_F90LINKLIBS += -lmpi ESMF_CXXLINKLIBS += -lmpi ESMF_MPIRUNDEFAULT = mpirun.lsf.rms ESMF_MPIMPMDRUNDEFAULT = mpimpmdrun.alpha -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),user) # User specified flags ------------------------------------- diff --git a/build_config/SunOS.default.default/build_rules.mk b/build_config/SunOS.default.default/build_rules.mk index dc28a4be32..7727e0bf3b 100644 --- a/build_config/SunOS.default.default/build_rules.mk +++ b/build_config/SunOS.default.default/build_rules.mk @@ -30,8 +30,6 @@ ifeq ($(ESMF_COMM),mpi) ESMF_F90DEFAULT = mpif90 ESMF_CXXDEFAULT = mpiCC ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS) -ESMF_F90COMPILECPPFLAGS+= -DESMF_NO_MPI3 -ESMF_CXXCOMPILECPPFLAGS+= -DESMF_NO_MPI3 else ifeq ($(ESMF_COMM),user) # User specified flags ------------------------------------- diff --git a/src/Infrastructure/Util/include/ESMF_Macros.inc b/src/Infrastructure/Util/include/ESMF_Macros.inc index 6073bd8e18..f4c546cc22 100644 --- a/src/Infrastructure/Util/include/ESMF_Macros.inc +++ b/src/Infrastructure/Util/include/ESMF_Macros.inc @@ -40,27 +40,4 @@ unmatched quotes confuse some preprocessors with delusions of grammar.) #define ESMF_SRCLINE ESMF_FILENAME, __LINE__ -#if 0 -Macros to allow structured early exits from blocks of Fortran code. -These are typically when testing for errors. - -Eventually these macros can be rewritten or replaced using the F2008 -block/end block statements. -#endif - -#ifdef OMPI_MAJOR_VERSION -#if (OMPI_MAJOR_VERSION < 2) -#if 0 -MPI-3 support was complete in OpenMPI v2 -#endif -#define ESMF_NO_MPI3 #endif -#endif - -#ifdef MVAPICH2_NUMVERSION -#if (MVAPICH2_NUMVERSION < 20000000) -#define ESMF_NO_MPI3 -#endif -#endif - -#endif diff --git a/src/Infrastructure/VM/include/ESMCI_VMKernel.h b/src/Infrastructure/VM/include/ESMCI_VMKernel.h index 81b9b01363..bc96ca92b0 100644 --- a/src/Infrastructure/VM/include/ESMCI_VMKernel.h +++ b/src/Infrastructure/VM/include/ESMCI_VMKernel.h @@ -323,7 +323,7 @@ class VMK{ bool threadsflag; // threaded or none-threaded VM // MPI Communicator handles MPI_Comm mpi_c; // communicator across the entire VM -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) MPI_Comm mpi_c_ssi; // communicator holding PETs on the same SSI #endif // Shared mutex and thread_finish variables. These are pointers that will be @@ -490,10 +490,13 @@ class VMK{ return true; #endif } - static bool isSsiSharedMemoryEnabled(); - //TODO: For now had to implement this method in the source file, because - //TODO: of the way the ESMF_NO_MPI3 macro is being determined. - //TODO: Move it into the VMKernel header once includes are fixed. + static bool isSsiSharedMemoryEnabled(){ +#if (MPI_VERSION >= 3) || (defined ESMF_MPIUNI) + return true; +#else + return false; +#endif + } #define XSTR(X) STR(X) #define STR(X) #X diff --git a/src/Infrastructure/VM/src/ESMCI_VMKernel.C b/src/Infrastructure/VM/src/ESMCI_VMKernel.C index 8e922c427c..25e3cc7d77 100644 --- a/src/Infrastructure/VM/src/ESMCI_VMKernel.C +++ b/src/Infrastructure/VM/src/ESMCI_VMKernel.C @@ -336,18 +336,6 @@ void VMK::obtain_args(){ } -bool VMK::isSsiSharedMemoryEnabled(){ - //TODO: For now had to implement this method in the source file, because - //TODO: of the way the ESMF_NO_MPI3 macro is being determined. - //TODO: Move it into the VMKernel header once includes are fixed. -#ifdef ESMF_NO_MPI3 - return false; -#else - return true; -#endif -} - - void VMK::InitPreMPI(){ #if !defined (ESMF_NO_SIGNALS) // initialize signal handling -> this MUST happen before MPI_Init is called!! @@ -461,7 +449,7 @@ void VMK::init(MPI_Comm mpiCommunicator, bool globalResourceControl){ MPI_Group_free(&mpi_g); // ... and copy the Comm object into the class static default variable... default_mpi_c = mpi_c; -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) // set up communicator across single-system-images SSIs MPI_Comm_split_type(mpi_c, MPI_COMM_TYPE_SHARED, 0, MPI_INFO_NULL, &mpi_c_ssi); @@ -695,7 +683,7 @@ void VMK::finalize(int finalizeMpi){ MPI_Finalized(&finalized); if (!finalized){ MPI_Comm_free(&mpi_c); -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) MPI_Comm_free(&mpi_c_ssi); #endif if (finalizeMpi) @@ -881,7 +869,7 @@ void VMK::construct(void *ssarg){ } } mpi_c = sarg->mpi_c; -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) mpi_c_ssi = sarg->mpi_c_ssi; #endif @@ -1914,7 +1902,7 @@ void *VMK::startup(class VMKPlan *vmp, // current VMK makes that call, even if this process will not participate // in the new VMK... MPI_Comm new_mpi_c; -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) MPI_Comm new_mpi_c_ssi; #endif @@ -1948,7 +1936,7 @@ void *VMK::startup(class VMKPlan *vmp, // store the communicator on this PET with info to free sarg[0].mpi_c = new_mpi_c; sarg[0].mpi_c_freeflag = 1; // responsible to free the communicator -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) // set up communicator across single-system-images SSIs MPI_Comm_split_type(vmp->mpi_c_part, MPI_COMM_TYPE_SHARED, 0, MPI_INFO_NULL, &new_mpi_c_ssi); @@ -1971,7 +1959,7 @@ void *VMK::startup(class VMKPlan *vmp, #endif recv(&new_mpi_c, sizeof(MPI_Comm), foundfirstpet); sarg[0].mpi_c_freeflag = 0; // not responsible to free the communicat. -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) recv(&new_mpi_c_ssi, sizeof(MPI_Comm), foundfirstpet); #ifdef VM_SSISHMLOG_on { @@ -1992,7 +1980,7 @@ void *VMK::startup(class VMKPlan *vmp, printf("mypet %d sends new_mpi_c to pet %d\n", mypet, i); #endif send(&new_mpi_c, sizeof(MPI_Comm), i); -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) send(&new_mpi_c_ssi, sizeof(MPI_Comm), i); #ifdef VM_SSISHMLOG_on { @@ -2206,7 +2194,7 @@ void *VMK::startup(class VMKPlan *vmp, sarg[i].cid[j][k] = new_cid[j][k]; } sarg[i].mpi_c = new_mpi_c; -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) sarg[i].mpi_c_ssi = new_mpi_c_ssi; #ifdef VM_SSISHMLOG_on { @@ -2593,7 +2581,7 @@ void VMK::shutdown(class VMKPlan *vmp, void *arg){ if (sarg[0].mpi_c != MPI_COMM_NULL){ MPI_Comm_free(&(sarg[0].mpi_c)); } -#if !(defined ESMF_NO_MPI3 || defined ESMF_MPIUNI) +#if (MPI_VERSION >= 3) if (sarg[0].mpi_c_ssi != MPI_COMM_NULL){ #ifdef VM_SSISHMLOG_on { @@ -6877,7 +6865,7 @@ void VMK::wtimedelay(double delay){ int VMK::ssishmAllocate(vector&bytes, memhandle *memh, bool contigFlag){ -#ifndef ESMF_NO_MPI3 +#if (MPI_VERSION >= 3) || (defined ESMF_MPIUNI) #ifndef ESMF_MPIUNI MPI_Comm_rank(mpi_c_ssi, &(memh->localPet)); MPI_Comm_size(mpi_c_ssi, &(memh->localPetCount)); @@ -6937,7 +6925,7 @@ int VMK::ssishmAllocate(vector&bytes, memhandle *memh, } int VMK::ssishmFree(memhandle *memh){ -#ifndef ESMF_NO_MPI3 +#if (MPI_VERSION >= 3) || (defined ESMF_MPIUNI) #ifdef VM_SSISHMLOG_on { std::stringstream msg; @@ -6981,7 +6969,7 @@ int VMK::ssishmFree(memhandle *memh){ int VMK::ssishmGetMems(memhandle memh, int pet, vector*mems, vector *bytes){ -#ifndef ESMF_NO_MPI3 +#if (MPI_VERSION >= 3) || (defined ESMF_MPIUNI) // error check the incoming information if (pet < 0 || pet > memh.localPetCount){ std::stringstream msg; @@ -7024,7 +7012,7 @@ int VMK::ssishmGetMems(memhandle memh, int pet, vector*mems, } int VMK::ssishmSync(memhandle memh){ -#ifndef ESMF_NO_MPI3 +#if (MPI_VERSION >= 3) || (defined ESMF_MPIUNI) #ifdef VM_SSISHMLOG_on { std::stringstream msg;