Skip to content

Commit 5302703

Browse files
DeniseWorthenMariana Vertenstein
andauthored
Add CMEPS to ufs-s2s-model (#90)
* Add CMEPS submodule * Add NEMS mediator equivalent regression tests for CMEPS (rt.sh only) * Add restart reproducibility regression test for CMEPS Co-authored-by: Mariana Vertenstein <mvertens@ucar.edu>
1 parent 9153994 commit 5302703

File tree

88 files changed

+71057
-11550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+71057
-11550
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
path = MOM6
2323
url = https://github.com/NOAA-EMC/MOM6-interface
2424
branch = develop
25+
[submodule "CMEPS"]
26+
path = CMEPS
27+
url = https://github.com/ESCOMP/CMEPS.git
28+
branch = master
2529
[submodule "WW3"]
2630
path = WW3
2731
url = https://github.com/NOAA-EMC/WW3.git

CMEPS

Submodule CMEPS added at b0dc4cf

compsets/cpld_fv3_ccpp_mom6_cice_2d_atm_flux.input

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ test cpld_fv3_ccpp_mom6_cice_2d_atm_flux: fv3_ccpp_mom6_cice.exe {
110110
DUMPFREQ="@[DUMPFREQ]",
111111
DT_THERM="@[DT_THERM_MOM6]",
112112
DT_DYNAM="@[DT_DYNAM_MOM6]",
113-
MOM6_RIVER_RUNOFF="@[MOM6_RIVER_RUNOFF]")
113+
MOM6_RIVER_RUNOFF="@[MOM6_RIVER_RUNOFF]",
114+
MOM6_REPRO_LA="@[MOM6_REPRO_LA]",
115+
MOM6_THERMO_SPAN="@[MOM6_THERMO_SPAN]")
114116

115117
# Specify output files:
116118
criteria output {

compsets/cpld_fv3_ccpp_mom6_cice_cold_atm_flux.input

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ test cpld_fv3_ccpp_mom6_cice_cold_atm_flux: fv3_ccpp_mom6_cice.exe {
107107
DUMPFREQ="@[DUMPFREQ]",
108108
DT_THERM="@[DT_THERM_MOM6]",
109109
DT_DYNAM="@[DT_DYNAM_MOM6]",
110-
MOM6_RIVER_RUNOFF="@[MOM6_RIVER_RUNOFF]")
110+
MOM6_RIVER_RUNOFF="@[MOM6_RIVER_RUNOFF]",
111+
MOM6_REPRO_LA="@[MOM6_REPRO_LA]",
112+
MOM6_THERMO_SPAN="@[MOM6_THERMO_SPAN]")
111113

112114
# Specify output files:
113115
criteria output {

compsets/fv3mom6cice5_ccpp.input

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,12 @@ cpl_defaults = {
119119
ocn_model="mom6"
120120
ice_model="cice"
121121
wav_model="ww3"
122-
# future use: for MOM6 river runoff
122+
# MOM6 river runoff
123123
MOM6_RIVER_RUNOFF='True'
124+
# set USE_LA_LI2016 to the current default; this must be set False for restart repro
125+
MOM6_REPRO_LA='True'
126+
# set the THERMO_SPANS_COUPLING to the current default; according to Gustavo and Alper, the correct setting is "False"
127+
MOM6_THERMO_SPAN='True'
124128
NPROC_ICE='48'
125129
DT_ATMOS='900' #needed for C96 cases
126130
DT_DYNAM_MOM6='900'
@@ -151,7 +155,7 @@ cpl_defaults = {
151155
# embeded bash script to create input files at prerun from specification
152156
# in compset
153157

154-
embed bash edit_inputs(CDATE,ATMRES,DT_CICE,NPROC_ICE,RUNTYPE,USE_RESTART_TIME,FRAZIL_FWSALT,RUNID,CICE_HIST_AVG,DUMPFREQ_N,DUMPFREQ,DT_THERM,DT_DYNAM,MOM6_RIVER_RUNOFF) [[[
158+
embed bash edit_inputs(CDATE,ATMRES,DT_CICE,NPROC_ICE,RUNTYPE,USE_RESTART_TIME,FRAZIL_FWSALT,RUNID,CICE_HIST_AVG,DUMPFREQ_N,DUMPFREQ,DT_THERM,DT_DYNAM,MOM6_RIVER_RUNOFF, MOM6_REPRO_LA, MOM6_THERMO_SPAN) [[[
155159

156160
python <<EOT
157161
import os
@@ -206,7 +210,9 @@ with open("INPUT/MOM_input_template",'rt') as inf:
206210
for x in inf.readlines():
207211
newline=x.replace("DT_THERM_MOM6","@[DT_THERM]") \
208212
.replace("DT_DYNAM_MOM6","@[DT_DYNAM]") \
209-
.replace("MOM6_RIVER_RUNOFF","@[MOM6_RIVER_RUNOFF]")
213+
.replace("MOM6_RIVER_RUNOFF","@[MOM6_RIVER_RUNOFF]") \
214+
.replace("MOM6_REPRO_LA","@[MOM6_REPRO_LA]") \
215+
.replace("MOM6_THERMO_SPAN","@[MOM6_THERMO_SPAN]")
210216
outf.write(newline)
211217

212218
#diag_table

conf/configure.fv3_coupled.cheyenne.intel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ endif
198198

199199
LDFLAGS += $(LIBS)
200200

201+
ifeq ($(CMEPS),Y)
202+
CPPDEFS += -DCMEPS
203+
endif
204+
201205
ifdef InNemsMakefile
202206
FFLAGS += $(ESMF_INC)
203207
CPPFLAGS += -DFV3_CPLD -traditional

conf/configure.fv3_coupled.cheyenne.intel-impi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ endif
121121

122122
FFLAGS_OPT = -O2 -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3
123123
FFLAGS_REPRO = -O2 -debug minimal -fp-model consistent -qoverride-limits -g -traceback
124-
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
124+
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 -link_mpi=dbg
125125

126126
TRANSCENDENTALS := -fast-transcendentals
127127
FFLAGS_OPENMP = -qopenmp
@@ -192,6 +192,10 @@ CFLAGS += $(SIONLIB_INC)
192192
FFLAGS += $(SIONLIB_INC)
193193
endif
194194

195+
ifeq ($(CMEPS),Y)
196+
CPPDEFS += -DCMEPS
197+
endif
198+
195199
LDFLAGS += $(LIBS)
196200

197201
ifdef InNemsMakefile

conf/configure.fv3_coupled.gaea.intel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ endif
9494

9595
FFLAGS_OPT = -O2 -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3
9696
FFLAGS_REPRO = -O2 -debug minimal -fp-model consistent -qoverride-limits -g -traceback
97-
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
97+
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 -link_mpi=dbg
9898

9999
TRANSCENDENTALS := -fast-transcendentals
100100
FFLAGS_OPENMP = -qopenmp
@@ -159,6 +159,10 @@ FFLAGS += -I$(PATH_CCPP)/include
159159
LDFLAGS += -L$(PATH_CCPP)/lib -lccppphys -lccpp $(NCEPLIBS) -lxml2
160160
endif
161161

162+
ifeq ($(CMEPS),Y)
163+
CPPDEFS += -DCMEPS
164+
endif
165+
162166
ifneq ($(findstring netcdf/4,$(LOADEDMODULES)),)
163167
LIBS += -lnetcdff -lnetcdf -L$(HDF5)/lib -lhdf5_hl -lhdf5 -lz
164168
else

conf/configure.fv3_coupled.hera.intel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ FFLAGS += -I$(PATH_CCPP)/include
168168
LDFLAGS += -L$(PATH_CCPP)/lib -lccppphys -lccpp $(NCEPLIBS) -lxml2
169169
endif
170170

171+
ifeq ($(CMEPS),Y)
172+
CPPDEFS += -DCMEPS
173+
endif
174+
171175
LDFLAGS += $(LIBS)
172176

173177
ifdef InNemsMakefile

0 commit comments

Comments
 (0)