@@ -77,7 +77,7 @@ using a fortran linker.
7777 </CPPDEFS >
7878
7979 <INCLDIR >
80- <append MODEL =" ufsatm" > -I$(EXEROOT)/atm/obj/FMS </append >
80+ <append MODEL =" ufsatm" > -I$(EXEROOT)/atm/obj/FMS </append >
8181 </INCLDIR >
8282 <FFLAGS >
8383 <append MODEL =" ufsatm" > $(FC_AUTO_R8) </append >
@@ -121,10 +121,10 @@ using a fortran linker.
121121 <base > -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none </base >
122122 <append compile_threaded =" TRUE" > -fopenmp </append >
123123 <!-- Ideally, we would also have 'invalid' in the ffpe-trap list. But at
124- least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
125- 7.1.0), gfortran's isnan (which is called in cime via the
126- CPRGNU-specific shr_infnan_isnan) causes a floating point exception
127- when called on a signaling NaN. -->
124+ least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
125+ 7.1.0), gfortran's isnan (which is called in cime via the
126+ CPRGNU-specific shr_infnan_isnan) causes a floating point exception
127+ when called on a signaling NaN. -->
128128 <append DEBUG =" TRUE" > -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds </append >
129129 <append DEBUG =" FALSE" > -O </append >
130130 </FFLAGS >
@@ -207,10 +207,10 @@ using a fortran linker.
207207 <base > -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none </base >
208208 <append compile_threaded =" TRUE" > -fopenmp </append >
209209 <!-- Ideally, we would also have 'invalid' in the ffpe-trap list. But at
210- least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
211- 7.1.0), gfortran's isnan (which is called in cime via the
212- CPRGNU-specific shr_infnan_isnan) causes a floating point exception
213- when called on a signaling NaN. -->
210+ least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
211+ 7.1.0), gfortran's isnan (which is called in cime via the
212+ CPRGNU-specific shr_infnan_isnan) causes a floating point exception
213+ when called on a signaling NaN. -->
214214 <append DEBUG =" TRUE" > -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds </append >
215215 <append DEBUG =" FALSE" > -O </append >
216216 </FFLAGS >
@@ -913,7 +913,7 @@ using a fortran linker.
913913 </FFLAGS >
914914 <LDFLAGS >
915915 <!-- the path to gcc should match that used in building the SmartRedis lib -->
916- <append >-Wl,-rpath /glade/u/apps/dav/opt/gnu/9.1.0/lib64 -L/glade/u/apps/dav/opt/gnu/9.1.0/lib64 -lgcc </append >
916+ <append >-Wl,-rpath /glade/u/apps/dav/opt/gnu/9.1.0/lib64 </append >
917917 </LDFLAGS >
918918 <CMAKE_OPTS >
919919 <append DEBUG =" TRUE" > -DPIO_ENABLE_LOGGING=ON </append >
@@ -939,8 +939,8 @@ using a fortran linker.
939939 </CPPDEFS >
940940 <FFLAGS >
941941 <!-- -fallow-argument-mismatch is needed for building with the mpich library with gfortran10;
942- -fallow-invalid-boz is needed for some components that have non-standard uses of BOZ literal constants with gfortran10.
943- See https://github.com/ESMCI/cime/issues/3846 for details. -->
942+ -fallow-invalid-boz is needed for some components that have non-standard uses of BOZ literal constants with gfortran10.
943+ See https://github.com/ESMCI/cime/issues/3846 for details. -->
944944<!-- <append> -fallow-argument-mismatch -fallow-invalid-boz </append> -->
945945 </FFLAGS >
946946 <SLIBS >
@@ -962,8 +962,14 @@ using a fortran linker.
962962 <PFUNIT_PATH MPILIB =" mpt" compile_threaded =" TRUE" >$ENV{CESMDATAROOT}/tools/pFUnit/pFUnit3.2.8_cheyenne_Intel17.0.1_MPI_openMP</PFUNIT_PATH >
963963 <!-- SET to FALSE for intel 17 and 18 TRUE otherwise -->
964964 <HAS_F2008_CONTIGUOUS >TRUE</HAS_F2008_CONTIGUOUS >
965+ <LDFLAGS >
966+ <!-- the path to gcc should match that used in building the SmartRedis lib -->
967+ <append MPILIB =" openmpi" > -std=c11 -gxx-name=/glade/u/apps/ch/opt/gnu/9.1.0/bin/g++ -Wl,-rpath,/glade/u/apps/ch/opt/gnu/9.1.0/lib64 -L/glade/u/apps/ch/opt/gnu/9.1.0/lib64 -lgcc </append >
968+ </LDFLAGS >
969+
965970</compiler >
966971
972+
967973<compiler MACH =" cheyenne" COMPILER =" pgi" >
968974 <SLIBS >
969975 <append > -llapack -lblas </append >
@@ -1322,7 +1328,7 @@ using a fortran linker.
13221328<compiler MACH =" homebrew" COMPILER =" gnu" >
13231329 <LDFLAGS >
13241330 <!-- These LDFLAGS provide lapack and blas support on a Mac. This
1325- may require installation of the Apple Developer Tools. -->
1331+ may require installation of the Apple Developer Tools. -->
13261332 <append > -framework Accelerate -Wl,-rpath $(NETCDF)/lib</append >
13271333 </LDFLAGS >
13281334</compiler >
0 commit comments