Skip to content

Commit

Permalink
Merge branch 'xylar/mpas-framework/fix-gnu-nersc' into next (PR #4854)
Browse files Browse the repository at this point in the history
MPAS standalone: Add gnu >=10 support on Cori

This merge adds the -fallow-argument-mismatch flag to the gnu-nersc
target for MPAS standalone builds. This got missed in #4821.

[BFB]
  • Loading branch information
jonbob committed Mar 31, 2022
2 parents 0b49daf + ef2a1d9 commit 264d9ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/mpas-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ cray-nersc:
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI" )

gnu-nersc:
GFORTRAN_GTE_10=$$(expr `ftn -dumpversion | cut -f1 -d.` \>= 10) ;\
if [ "$${GFORTRAN_GTE_10}" = "1" ]; then \
EXTRA_FFLAGS="-fallow-argument-mismatch"; \
else \
EXTRA_FFLAGS=""; \
fi; \
( $(MAKE) all \
"FC_PARALLEL = ftn" \
"CC_PARALLEL = cc" \
Expand All @@ -418,11 +424,11 @@ gnu-nersc:
"CXX_SERIAL = CC" \
"FFLAGS_FPIEEE = " \
"FFLAGS_PROMOTION = -fdefault-real-8 -fdefault-double-8" \
"FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -ffpe-summary=none" \
"FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -ffpe-summary=none $${EXTRA_FFLAGS}" \
"CFLAGS_OPT = -O3 -m64" \
"CXXFLAGS_OPT = -O3 -m64" \
"LDFLAGS_OPT = -O3 -m64" \
"FFLAGS_DEBUG = -g -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow -ffpe-summary=none" \
"FFLAGS_DEBUG = -g -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow -ffpe-summary=none $${EXTRA_FFLAGS}" \
"CFLAGS_DEBUG = -g -m64" \
"CXXFLAGS_DEBUG = -g -m64" \
"LDFLAGS_DEBUG = -g -m64" \
Expand Down

0 comments on commit 264d9ec

Please sign in to comment.