forked from ufs-community/ufs-s2s-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ufs-community/develop
Porting regression tests to Orion (ufs-community#78)
- Loading branch information
Showing
19 changed files
with
27,132 additions
and
10,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FV3
updated
20 files
+2 −2 | atmos_model.F90 | |
+3 −9 | ccpp/build_ccpp.sh | |
+1 −1 | ccpp/physics | |
+27 −20 | cpl/module_cap_cpl.F90 | |
+2 −2 | cpl/module_cplfields.F90 | |
+14 −3 | fv3_cap.F90 | |
+79 −43 | gfsphysics/GFS_layer/GFS_physics_driver.F90 | |
+48 −17 | gfsphysics/GFS_layer/GFS_typedefs.F90 | |
+42 −0 | gfsphysics/GFS_layer/GFS_typedefs.meta | |
+25 −50 | gfsphysics/physics/module_sf_noahmplsm.f90 | |
+2 −2 | gfsphysics/physics/satmedmfvdifq.f | |
+17 −8 | gfsphysics/physics/sfc_diff.f | |
+8 −24 | gfsphysics/physics/sfc_noahmp_drv.f | |
+68 −61 | gfsphysics/physics/sflx.f | |
+15 −12 | gfsphysics/physics/ugwp_driver_v0.f | |
+42 −26 | io/FV3GFS_io.F90 | |
+3 −0 | io/module_write_netcdf.F90 | |
+7 −2 | io/module_write_netcdf_parallel.F90 | |
+106 −30 | io/module_wrt_grid_comp.F90 | |
+5 −5 | module_fcst_grid_comp.F90 |
Submodule WW3
updated
29 files
+7 −0 | manual/impl/switch.tex | |
+2 −2 | model/bin/cmplr.env | |
+14 −1 | model/bin/make_makefile.sh | |
+1 −0 | model/bin/w3_new | |
+2 −2 | model/bin/w3_setup | |
+1 −1 | model/esmf/Makefile | |
+1 −1 | model/ftn/w3iobcmd.ftn | |
+1 −1 | model/ftn/w3iogomd.ftn | |
+1 −1 | model/ftn/w3iopomd.ftn | |
+1 −1 | model/ftn/w3iorsmd.ftn | |
+1 −1 | model/ftn/w3iosfmd.ftn | |
+1 −1 | model/ftn/w3iotrmd.ftn | |
+269 −138 | model/ftn/w3psmcmd.ftn | |
+1 −1 | model/ftn/w3src4md.ftn | |
+24 −10 | model/ftn/wmesmfmd.ftn | |
+2 −0 | model/ftn/wmgridmd.ftn | |
+4 −1 | model/ftn/wminitmd.ftn | |
+8 −24 | model/ftn/wmupdtmd.ftn | |
+1 −1 | model/ftn/ww3_bounc.ftn | |
+1 −1 | model/ftn/ww3_bound.ftn | |
+13 −0 | model/ftn/ww3_multi.ftn | |
+17 −3 | model/ftn/ww3_shel.ftn | |
+5 −0 | regtests/bin/matrix.base | |
+19 −1 | regtests/bin/matrix_ncep | |
+36 −26 | regtests/bin/run_test | |
+2 −0 | regtests/ww3_tp2.10/info | |
+1 −0 | regtests/ww3_tp2.10/input/switch_MPI_OMPH | |
+1 −0 | regtests/ww3_tp2.16/info | |
+1 −0 | regtests/ww3_tp2.16/input/switch_MPI_OMPH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
## NEMS configuration file | ||
## | ||
## Platform: Cheyenne | ||
## Compiler: Intel with IntelMPI | ||
|
||
SHELL=/bin/sh | ||
|
||
################################################################################ | ||
## Include the common configuration parts | ||
|
||
ifdef InNemsMakefile | ||
include $(TOP)/conf/configure.nems.NUOPC | ||
endif | ||
|
||
###################### PHYS_MODE ##### CHEM_MODE ############################### | ||
# | ||
# | ||
# | ||
|
||
PHYS_MODE =compile | ||
CHEM_MODE =compile | ||
ifeq ($(PHYS_MODE),compile) | ||
PHYS_LIB = $(TOP)/atmos/gsm/gsmphys | ||
PHYS_INC = $(TOP)/atmos/gsm/gsmphys | ||
PHYS_DIR = $(TOP)/atmos/gsm/gsmphys | ||
endif | ||
ifeq ($(CHEM_MODE),compile) | ||
CHEM_LIB = $(TOP)/chem | ||
CHEM_INC = $(TOP)/chem/gocart/src/Config/ | ||
CHEM_DIR = $(TOP)/chem | ||
CHEM_MOD = $(TOP)/chem/gocart/${ARCH}/include | ||
ESMADIR = chem/gocart | ||
endif | ||
|
||
############ | ||
# commands # | ||
############ | ||
FC = mpiifort | ||
CC = mpiicc | ||
CXX = mpiicpc | ||
LD = mpiifort -mkl=sequential | ||
|
||
######### | ||
# flags # | ||
######### | ||
# default is 64-bit OpenMP non-hydrostatic build using AVX2 | ||
DEBUG = | ||
REPRO = | ||
VERBOSE = | ||
OPENMP = Y | ||
AVX2 = Y | ||
HYDRO = N | ||
CCPP = N | ||
STATIC = N | ||
SION = N | ||
|
||
include $(ESMFMKFILE) | ||
ESMF_INC = $(ESMF_F90COMPILEPATHS) | ||
|
||
NEMSIOINC = -I$(NEMSIO_INC) | ||
NCEPLIBS = $(NEMSIO_LIB) $(BACIO_LIB4) $(SP_LIBd) $(W3EMC_LIBd) $(W3NCO_LIBd) | ||
|
||
############################################## | ||
# Need to use at least GNU Make version 3.81 # | ||
############################################## | ||
need := 3.81 | ||
ok := $(filter $(need),$(firstword $(sort $(MAKE_VERSION) $(need)))) | ||
ifneq ($(need),$(ok)) | ||
$(error Need at least make version $(need). Load module gmake/3.81) | ||
endif | ||
|
||
NETCDF_ROOT = $(NETCDF) | ||
INCLUDE = -I$(NETCDF_ROOT)/include | ||
NETCDF_INC = -I$(NETCDF_ROOT)/include | ||
ifneq ($(findstring netcdf/4,$(LOADEDMODULES)),) | ||
NETCDF_LIB += -L$(NETCDF)/lib -lnetcdff -lnetcdf | ||
else | ||
NETCDF_LIB += -L$(NETCDF)/lib -lnetcdff -lnetcdf | ||
endif | ||
|
||
FPPFLAGS := -fpp -Wp,-w $(INCLUDE) | ||
CFLAGS := $(INCLUDE) | ||
|
||
FFLAGS := $(INCLUDE) -fno-alias -auto -safe-cray-ptr -save-temps -ftz -assume byterecl -nowarn -sox -align array64byte | ||
|
||
CPPDEFS += -Duse_libMPI -Duse_netCDF -DSPMD -DUSE_LOG_DIAG_FIELD_INFO -DUSE_GFSL63 -DGFS_PHYS -Duse_WRTCOMP | ||
CPPDEFS += -DNEW_TAUCTMAX -DINTERNAL_FILE_NML -DNO_INLINE_POST | ||
|
||
ifeq ($(HYDRO),Y) | ||
CPPDEFS += | ||
else | ||
CPPDEFS += -DMOIST_CAPPA -DUSE_COND | ||
endif | ||
|
||
ifeq ($(NAM_phys),Y) | ||
CPPDEFS += -DNAM_phys | ||
endif | ||
|
||
ifeq ($(32BIT),Y) | ||
CPPDEFS += -DOVERLOAD_R4 -DOVERLOAD_R8 | ||
FFLAGS += -i4 -real-size 32 | ||
else | ||
ifeq ($(REPRO),Y) | ||
FFLAGS += -i4 -real-size 64 | ||
else | ||
FFLAGS += -i4 -real-size 64 -no-prec-div -no-prec-sqrt | ||
endif | ||
endif | ||
|
||
ifeq ($(REPRO),Y) | ||
FFLAGS += -qno-opt-dynamic-align | ||
CFLAGS += -qno-opt-dynamic-align | ||
else | ||
ifeq ($(AVX2),Y) | ||
FFLAGS += -xCORE-AVX2 -qno-opt-dynamic-align | ||
CFLAGS += -xCORE-AVX2 -qno-opt-dynamic-align | ||
else | ||
FFLAGS += -xHOST -qno-opt-dynamic-align | ||
CFLAGS += -xHOST -qno-opt-dynamic-align | ||
endif | ||
endif | ||
|
||
ifeq ($(MULTI_GASES),Y) | ||
CPPDEFS += -DMULTI_GASES | ||
endif | ||
|
||
FFLAGS_OPT = -O2 -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3 | ||
FFLAGS_REPRO = -O2 -debug minimal -fp-model consistent -qoverride-limits -g -traceback | ||
FFLAGS_DEBUG = -g -O0 -check all -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -traceback -ftrapuv | ||
|
||
TRANSCENDENTALS := -fast-transcendentals | ||
FFLAGS_OPENMP = -qopenmp | ||
FFLAGS_VERBOSE = -v -V -what | ||
|
||
CFLAGS += -D__IFC -sox -fp-model source | ||
|
||
CFLAGS_OPT = -O2 -debug minimal | ||
CFLAGS_REPRO = -O2 -debug minimal | ||
CFLAGS_OPENMP = -qopenmp | ||
CFLAGS_DEBUG = -O0 -g -ftrapuv -traceback | ||
|
||
# Optional Testing compile flags. Mutually exclusive from DEBUG, REPRO, and OPT | ||
# *_TEST will match the production if no new option(s) is(are) to be tested. | ||
FFLAGS_TEST = -O3 -debug minimal -fp-model source -qoverride-limits | ||
CFLAGS_TEST = -O2 | ||
|
||
LDFLAGS := | ||
LDFLAGS_OPENMP := -qopenmp | ||
LDFLAGS_VERBOSE := -Wl,-V,--verbose,-cref,-M | ||
|
||
# start with blank LIBS | ||
LIBS := | ||
|
||
ifeq ($(REPRO),Y) | ||
CPPDEFS += -DREPRO | ||
CFLAGS += $(CFLAGS_REPRO) | ||
FFLAGS += $(FFLAGS_REPRO) | ||
FAST := | ||
else ifeq ($(DEBUG),Y) | ||
CPPDEFS += -DDEBUG | ||
CFLAGS += $(CFLAGS_DEBUG) | ||
FFLAGS += $(FFLAGS_DEBUG) | ||
FAST := | ||
else ifeq ($(TEST),Y) | ||
CFLAGS += $(CFLAGS_TEST) | ||
FFLAGS += $(FFLAGS_TEST) | ||
FAST := | ||
else | ||
CFLAGS += $(CFLAGS_OPT) | ||
FFLAGS += $(FFLAGS_OPT) | ||
FAST := $(TRANSCENDENTALS) | ||
endif | ||
|
||
ifeq ($(OPENMP),Y) | ||
CPPDEFS += -DOPENMP | ||
CFLAGS += $(CFLAGS_OPENMP) | ||
FFLAGS += $(FFLAGS_OPENMP) | ||
LDFLAGS += $(LDFLAGS_OPENMP) | ||
endif | ||
|
||
ifeq ($(VERBOSE),Y) | ||
CFLAGS += $(CFLAGS_VERBOSE) | ||
FFLAGS += $(FFLAGS_VERBOSE) | ||
LDFLAGS += $(LDFLAGS_VERBOSE) | ||
endif | ||
|
||
ifeq ($(CCPP),Y) | ||
CPPDEFS += -DCCPP | ||
CFLAGS += -I$(PATH_CCPP)/include | ||
FFLAGS += -I$(PATH_CCPP)/include | ||
ifeq ($(STATIC),Y) | ||
CPPDEFS += -DSTATIC | ||
LDFLAGS += -L$(PATH_CCPP)/lib -lccppphys -lccpp $(NCEPLIBS) -lxml2 | ||
else | ||
LDFLAGS += -L$(PATH_CCPP)/lib -lccpp | ||
endif | ||
endif | ||
|
||
ifeq ($(SION),Y) | ||
CPPDEFS += -DSION | ||
CFLAGS += $(SIONLIB_INC) | ||
FFLAGS += $(SIONLIB_INC) | ||
endif | ||
|
||
LDFLAGS += $(LIBS) | ||
|
||
ifdef InNemsMakefile | ||
FFLAGS += $(ESMF_INC) | ||
CPPFLAGS += -DFV3_CPLD -traditional | ||
EXTLIBS = $(NCEPLIBS) $(ESMF_LIB) $(LDFLAGS) $(NETCDF_LIB) $(SIONLIB_LIB) | ||
endif |
Oops, something went wrong.