Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to ufs.configure for use in global applications #2074

Closed
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ elif [[ $MACHINE_ID = derecho ]]; then
INPES_thrd=3 ; JNPES_thrd=4
INPES_c384=8 ; JNPES_c384=6 ; THRD_c384=2
INPES_c768=8 ; JNPES_c768=16 ; THRD_c768=2

THRD_cpl_atmw_gdas=2
INPES_cpl_atmw_gdas=6; JNPES_cpl_atmw_gdas=8; WPG_cpl_atmw_gdas=24
WAV_tasks_atmw_gdas=248
Expand Down Expand Up @@ -320,6 +320,10 @@ WLCLK_dflt=30
export WLCLK=$WLCLK_dflt
export CMP_DATAONLY=false

# Defaults for ufs.configure
export esmf_logkind="ESMF_LOGKIND_MULTI"
export DumpFields="false"
DeniseWorthen marked this conversation as resolved.
Show resolved Hide resolved

export_fv3 ()
{
# ufs.configure defaults
Expand Down Expand Up @@ -738,7 +742,7 @@ export WW3_IC5='F'

# Defaults for the coupled 5-component
export_cmeps() {
export UFS_CONFIGURE=ufs.configure.s2swa.IN
export UFS_CONFIGURE=ufs.configure.s2swa_fast_esmf.IN
export med_model=cmeps
export atm_model=fv3
export chm_model=gocart
Expand Down
2 changes: 1 addition & 1 deletion tests/parm/ufs.configure.atm.IN
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#############################################

# ESMF #
logKindFlag: ESMF_LOGKIND_MULTI
logKindFlag: @[esmf_logkind]
globalResourceControl: true

# EARTH #
Expand Down
2 changes: 1 addition & 1 deletion tests/parm/ufs.configure.atmaero.IN
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#############################################

# ESMF #
logKindFlag: ESMF_LOGKIND_MULTI
logKindFlag: @[esmf_logkind]
globalResourceControl: true

# EARTH #
Expand Down
4 changes: 2 additions & 2 deletions tests/parm/ufs.configure.leapfrog_atm_wav.IN
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#############################################

# ESMF #
logKindFlag: ESMF_LOGKIND_MULTI
logKindFlag: @[esmf_logkind]
globalResourceControl: true

# EARTH #
Expand All @@ -18,7 +18,7 @@ ATM_petlist_bounds: @[atm_petlist_bounds]
ATM_omp_num_threads: @[atm_omp_num_threads]
ATM_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
::

# WAV #
Expand Down
14 changes: 5 additions & 9 deletions tests/parm/ufs.configure.s2s.IN
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#############################################

# ESMF #
logKindFlag: ESMF_LOGKIND_MULTI
globalResourceControl: true
logKindFlag: @[esmf_logkind]
globalResourceControl: false
aerorahul marked this conversation as resolved.
Show resolved Hide resolved

# EARTH #
EARTH_component_list: MED ATM OCN ICE
Expand All @@ -15,27 +15,24 @@ EARTH_attributes::
# MED #
MED_model: @[med_model]
MED_petlist_bounds: @[med_petlist_bounds]
MED_omp_num_threads: @[med_omp_num_threads]
::

# ATM #
ATM_model: @[atm_model]
ATM_petlist_bounds: @[atm_petlist_bounds]
ATM_omp_num_threads: @[atm_omp_num_threads]
ATM_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
::

# OCN #
OCN_model: @[ocn_model]
OCN_petlist_bounds: @[ocn_petlist_bounds]
OCN_omp_num_threads: @[ocn_omp_num_threads]
OCN_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ocn = @[MESH_OCN]
Expand All @@ -46,10 +43,9 @@ OCN_attributes::
# ICE #
ICE_model: @[ice_model]
ICE_petlist_bounds: @[ice_petlist_bounds]
ICE_omp_num_threads: @[ice_omp_num_threads]
ICE_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ice = @[MESH_ICE]
Expand Down
124 changes: 124 additions & 0 deletions tests/parm/ufs.configure.s2s_esmf.IN
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#############################################
#### UFS Run-Time Configuration File ######
#############################################

# ESMF #
logKindFlag: @[esmf_logkind]
globalResourceControl: true

# EARTH #
EARTH_component_list: MED ATM OCN ICE
EARTH_attributes::
Verbosity = 0
::

# MED #
MED_model: @[med_model]
MED_petlist_bounds: @[med_petlist_bounds]
MED_omp_num_threads: @[med_omp_num_threads]
::

# ATM #
ATM_model: @[atm_model]
ATM_petlist_bounds: @[atm_petlist_bounds]
ATM_omp_num_threads: @[atm_omp_num_threads]
ATM_attributes::
Verbosity = 0
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
::

# OCN #
OCN_model: @[ocn_model]
OCN_petlist_bounds: @[ocn_petlist_bounds]
OCN_omp_num_threads: @[ocn_omp_num_threads]
OCN_attributes::
Verbosity = 0
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ocn = @[MESH_OCN]
use_coldstart = @[use_coldstart]
use_mommesh = @[use_mommesh]
::

# ICE #
ICE_model: @[ice_model]
ICE_petlist_bounds: @[ice_petlist_bounds]
ICE_omp_num_threads: @[ice_omp_num_threads]
ICE_attributes::
Verbosity = 0
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ice = @[MESH_ICE]
eps_imesh = @[eps_imesh]
stop_n = @[RESTART_N]
stop_option = nhours
stop_ymd = -999
::

# CMEPS warm run sequence
runSeq::
@@[coupling_interval_slow_sec]
MED med_phases_prep_ocn_avg
MED -> OCN :remapMethod=redist
OCN
@@[coupling_interval_fast_sec]
MED med_phases_prep_atm
MED med_phases_prep_ice
MED -> ATM :remapMethod=redist
MED -> ICE :remapMethod=redist
ATM
ICE
ATM -> MED :remapMethod=redist
MED med_phases_post_atm
ICE -> MED :remapMethod=redist
MED med_phases_post_ice
MED med_phases_ocnalb_run
MED med_phases_prep_ocn_accum
@
OCN -> MED :remapMethod=redist
MED med_phases_post_ocn
MED med_phases_restart_write
@
::

# CMEPS variables

DRIVER_attributes::
::

MED_attributes::
ATM_model = @[atm_model]
ICE_model = @[ice_model]
OCN_model = @[ocn_model]
coupling_mode = @[CPLMODE]
history_tile_atm = @[ATMTILESIZE]
pio_rearranger = @[pio_rearranger]
ocean_albedo_limit = @[ocean_albedo_limit]
::

ALLCOMP_attributes::
ScalarFieldCount = 2
ScalarFieldIdxGridNX = 1
ScalarFieldIdxGridNY = 2
ScalarFieldName = cpl_scalars
start_type = @[RUNTYPE]
restart_dir = @[CMEPS_RESTART_DIR]
case_name = ufs.cpld
restart_n = @[RESTART_N]
restart_option = nhours
restart_ymd = -999
dbug_flag = @[cap_dbug_flag]
stop_n = @[FHMAX]
stop_option = nhours
stop_ymd = -999
orb_eccen = 1.e36
orb_iyear = 2000
orb_iyear_align = 2000
orb_mode = fixed_year
orb_mvelp = 1.e36
orb_obliq = 1.e36
::
16 changes: 6 additions & 10 deletions tests/parm/ufs.configure.s2sa.IN
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#############################################

# ESMF #
logKindFlag: ESMF_LOGKIND_MULTI
globalResourceControl: true
logKindFlag: @[esmf_logkind]
globalResourceControl: false

# EARTH #
EARTH_component_list: MED ATM CHM OCN ICE
Expand All @@ -15,34 +15,31 @@ EARTH_attributes::
# MED #
MED_model: @[med_model]
MED_petlist_bounds: @[med_petlist_bounds]
MED_omp_num_threads: @[med_omp_num_threads]
::

# ATM #
ATM_model: @[atm_model]
ATM_petlist_bounds: @[atm_petlist_bounds]
ATM_omp_num_threads: @[atm_omp_num_threads]
ATM_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
::

# CHM #
CHM_model: @[chm_model]
CHM_petlist_bounds: @[chm_petlist_bounds]
CHM_omp_num_threads: @[chm_omp_num_threads]
CHM_attributes::
Verbosity = 0
::

# OCN #
OCN_model: @[ocn_model]
OCN_petlist_bounds: @[ocn_petlist_bounds]
OCN_omp_num_threads: @[ocn_omp_num_threads]
OCN_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ocn = @[MESH_OCN]
Expand All @@ -53,10 +50,9 @@ OCN_attributes::
# ICE #
ICE_model: @[ice_model]
ICE_petlist_bounds: @[ice_petlist_bounds]
ICE_omp_num_threads: @[ice_omp_num_threads]
ICE_attributes::
Verbosity = 0
DumpFields = false
DumpFields = @[DumpFields]
ProfileMemory = false
OverwriteSlice = true
mesh_ice = @[MESH_ICE]
Expand Down
Loading