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

add cpld_control_wave with 1deg wave grid #385

Closed
Closed
Show file tree
Hide file tree
Changes from 2 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
23 changes: 22 additions & 1 deletion tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ elif [[ $MACHINE_ID = wcoss_dell_p3 || $MACHINE_ID = wcoss2 ]]; then
TASKS_strnest=96 ; TPN_strnest=28 ; INPES_strnest=2 ; JNPES_strnest=4

TASKS_cpl_dflt=192; TPN_cpl_dflt=28; INPES_cpl_dflt=3; JNPES_cpl_dflt=8
THRD_cpl_dflt=1; WPG_cpl_dflt=6; MPB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
THRD_cpl_dflt=1; WPG_cpl_dflt=6; ePB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a typo here and elsewhere: ePB_cpl_dflt.

The WPG is the atm write component tasks, the MPB is the mediator, the APB is the atmosphere, the OPB is the ocean and the IPB is the ice.

OPB_cpl_dflt="150 179"; IPB_cpl_dflt="180 191"

TASKS_cpl_dflt_wwav=288; TPN_cpl_dflt_wwav=28; INPES_cpl_dflt_wwav=4; JNPES_cpl_dflt_wwav=8
THRD_cpl_dflt_wwav=1; WPG_cpl_dflt=12; ePB_cpl_dflt_wwav="0 191"; APB_cpl_dflt_wwav="0 203"
OPB_cpl_dflt_wwav="204 263"; IPB_cpl_dflt_wwav="264 287"

TASKS_cpl_thrd=120; TPN_cpl_thrd=14; INPES_cpl_thrd=3; JNPES_cpl_thrd=4
THRD_cpl_thrd=2; WPG_cpl_thrd=6; MPB_cpl_thrd="0 77"; APB_cpl_thrd="0 77"
OPB_cpl_thrd="78 107"; IPB_cpl_thrd="108 119"
Expand Down Expand Up @@ -64,6 +68,10 @@ elif [[ $MACHINE_ID = orion.* ]]; then
THRD_cpl_dflt=1; WPG_cpl_dflt=6; MPB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
OPB_cpl_dflt="150 179"; IPB_cpl_dflt="180 191"

TASKS_cpl_dflt_wwav=288; TPN_cpl_dflt_wwav=40; INPES_cpl_dflt_wwav=4; JNPES_cpl_dflt_wwav=8
THRD_cpl_dflt_wwav=1; WPG_cpl_dflt=12; ePB_cpl_dflt_wwav="0 191"; APB_cpl_dflt_wwav="0 203"
OPB_cpl_dflt_wwav="204 263"; IPB_cpl_dflt_wwav="264 287"

TASKS_cpl_thrd=120; TPN_cpl_thrd=40; INPES_cpl_thrd=3; JNPES_cpl_thrd=4
THRD_cpl_thrd=2; WPG_cpl_thrd=6; MPB_cpl_thrd="0 77"; APB_cpl_thrd="0 77"
OPB_cpl_thrd="78 107"; IPB_cpl_thrd="108 119"
Expand Down Expand Up @@ -103,6 +111,10 @@ elif [[ $MACHINE_ID = hera.* ]]; then
THRD_cpl_dflt=1; WPG_cpl_dflt=6; MPB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
OPB_cpl_dflt="150 179"; IPB_cpl_dflt="180 191"

TASKS_cpl_dflt_wwav=288; TPN_cpl_dflt_wwav=40; INPES_cpl_dflt_wwav=4; JNPES_cpl_dflt_wwav=8
THRD_cpl_dflt_wwav=1; WPG_cpl_dflt=12; ePB_cpl_dflt_wwav="0 191"; APB_cpl_dflt_wwav="0 203"
OPB_cpl_dflt_wwav="204 263"; IPB_cpl_dflt_wwav="264 287"

TASKS_cpl_thrd=120; TPN_cpl_thrd=40; INPES_cpl_thrd=3; JNPES_cpl_thrd=4
THRD_cpl_thrd=2; WPG_cpl_thrd=6; MPB_cpl_thrd="0 77"; APB_cpl_thrd="0 77"
OPB_cpl_thrd="78 107"; IPB_cpl_thrd="108 119"
Expand Down Expand Up @@ -167,6 +179,10 @@ elif [[ $MACHINE_ID = cheyenne.* ]]; then
THRD_cpl_dflt=1; WPG_cpl_dflt=6; MPB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
OPB_cpl_dflt="150 179"; IPB_cpl_dflt="180 191"

TASKS_cpl_dflt_wwav=288; TPN_cpl_dflt_wwav=36; INPES_cpl_dflt_wwav=4; JNPES_cpl_dflt_wwav=8
THRD_cpl_dflt_wwav=1; WPG_cpl_dflt=12; ePB_cpl_dflt_wwav="0 191"; APB_cpl_dflt_wwav="0 203"
OPB_cpl_dflt_wwav="204 263"; IPB_cpl_dflt_wwav="264 287"

TASKS_cpl_thrd=120; TPN_cpl_thrd=36; INPES_cpl_thrd=3; JNPES_cpl_thrd=4
THRD_cpl_thrd=2; WPG_cpl_thrd=6; MPB_cpl_thrd="0 77"; APB_cpl_thrd="0 77"
OPB_cpl_thrd="78 107"; IPB_cpl_thrd="108 119"
Expand Down Expand Up @@ -205,6 +221,10 @@ elif [[ $MACHINE_ID = stampede.* ]]; then
THRD_cpl_dflt=1; WPG_cpl_dflt=6; MPB_cpl_dflt="0 143"; APB_cpl_dflt="0 149"
OPB_cpl_dflt="150 179"; IPB_cpl_dflt="180 191"

TASKS_cpl_dflt_wwav=288; TPN_cpl_dflt_wwav=48; INPES_cpl_dflt_wwav=4; JNPES_cpl_dflt_wwav=8
THRD_cpl_dflt_wwav=1; WPG_cpl_dflt=12; ePB_cpl_dflt_wwav="0 191"; APB_cpl_dflt_wwav="0 203"
OPB_cpl_dflt_wwav="204 263"; IPB_cpl_dflt_wwav="264 287"

TASKS_cpl_thrd=120; TPN_cpl_thrd=48; INPES_cpl_thrd=3; JNPES_cpl_thrd=4
THRD_cpl_thrd=2; WPG_cpl_thrd=6; MPB_cpl_thrd="0 77"; APB_cpl_thrd="0 77"
OPB_cpl_thrd="78 107"; IPB_cpl_thrd="108 119"
Expand Down Expand Up @@ -555,6 +575,7 @@ export JATM=768
export ATMRES='C96'
export OCNRES='100'
export ICERES='1.00'
export WAVRES='1.00'
export NX_GLB=360
export NY_GLB=320

Expand Down
6 changes: 6 additions & 0 deletions tests/fv3_conf/cpld_control_run.IN
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ cp @[INPUTDATA_ROOT]/CICE_FIX/@[OCNRES]/grid_cice_NEMS_mx@[OCNRES].nc .
cp @[INPUTDATA_ROOT]/CICE_FIX/@[OCNRES]/kmtu_cice_NEMS_mx@[OCNRES].nc .
cp @[INPUTDATA_ROOT]/CICE_FIX/@[OCNRES]/mesh.mx@[OCNRES].nc .

# WW3 fix/input
if [[ $CPLWAV == .T. && $CPLWAV2ATM == .T. ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need this only if CPLWAV is true, cplwave2atm=f would still need mod_defs and the input file

cp @[INPUTDATA_ROOT_WW3]/mod_def.* .
cp @[INPUTDATA_ROOT_WW3]/ww3_multi_1deg.inp ww3_multi.inp
fi

# No restart
if [ $WARM_START = .F. ]; then
# ICs
Expand Down
92 changes: 92 additions & 0 deletions tests/tests/cpld_control_wave
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#
# cpld_control_wave test
#

export TEST_DESCR="Fully coupled FV3-CCPP-MOM6-CICE-CMEPS-WW3 system - C96MX100 with waves"

export CNTL_DIR="cpld_control_wave"

export LIST_FILES="phyf024.tile1.nc \
phyf024.tile2.nc \
phyf024.tile3.nc \
phyf024.tile4.nc \
phyf024.tile5.nc \
phyf024.tile6.nc \
dynf024.tile1.nc \
dynf024.tile2.nc \
dynf024.tile3.nc \
dynf024.tile4.nc \
dynf024.tile5.nc \
dynf024.tile6.nc \
RESTART/coupler.res \
RESTART/fv_core.res.nc \
RESTART/fv_core.res.tile1.nc \
RESTART/fv_core.res.tile2.nc \
RESTART/fv_core.res.tile3.nc \
RESTART/fv_core.res.tile4.nc \
RESTART/fv_core.res.tile5.nc \
RESTART/fv_core.res.tile6.nc \
RESTART/fv_srf_wnd.res.tile1.nc \
RESTART/fv_srf_wnd.res.tile2.nc \
RESTART/fv_srf_wnd.res.tile3.nc \
RESTART/fv_srf_wnd.res.tile4.nc \
RESTART/fv_srf_wnd.res.tile5.nc \
RESTART/fv_srf_wnd.res.tile6.nc \
RESTART/fv_tracer.res.tile1.nc \
RESTART/fv_tracer.res.tile2.nc \
RESTART/fv_tracer.res.tile3.nc \
RESTART/fv_tracer.res.tile4.nc \
RESTART/fv_tracer.res.tile5.nc \
RESTART/fv_tracer.res.tile6.nc \
RESTART/phy_data.tile1.nc \
RESTART/phy_data.tile2.nc \
RESTART/phy_data.tile3.nc \
RESTART/phy_data.tile4.nc \
RESTART/phy_data.tile5.nc \
RESTART/phy_data.tile6.nc \
RESTART/sfc_data.tile1.nc \
RESTART/sfc_data.tile2.nc \
RESTART/sfc_data.tile3.nc \
RESTART/sfc_data.tile4.nc \
RESTART/sfc_data.tile5.nc \
RESTART/sfc_data.tile6.nc \
RESTART/MOM.res.nc \
RESTART/iced.2016-10-04-00000.nc \
RESTART/ufs.cpld.cpl.r.2016-10-04-00000.nc \
out_grd.glo_1deg"

export_fv3
export_cpl

# set component and coupling timesteps
export DT_ATMOS='450'
export DT_CICE=${DT_ATMOS}
export DT_DYNAM_MOM6='900'
export DT_THERM_MOM6='1800'
export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

export RESTART_INTERVAL="12"
export RESTART_N=${RESTART_INTERVAL}

export TASKS=$TASKS_cpl_dflt_wwav
export TPN=$TPN_cpl_dflt_wwav
export INPES=$INPES_cpl_dflt_wwav
export JNPES=$JNPES_cpl_dflt_wwav
export THRD=$THRD_cpl_dflt_wwav
export WRTTASK_PER_GROUP=$WPG_cpl_dflt_wwav

export med_petlist_bounds=$MPB_cpl_dflt_wwav
export atm_petlist_bounds=$APB_cpl_dflt_wwav
export ocn_petlist_bounds=$OPB_cpl_dflt_wwav
export ice_petlist_bounds=$IPB_cpl_dflt_wwav
export wav_petlist_bounds=$WPB_cpl_dflt_wwav

# nems.configure
export NEMS_CONFIGURE="nems.configure.cpld_wave.IN"
export coupling_interval_slow_sec=${CPL_SLOW}
export coupling_interval_fast_sec=${CPL_FAST}

export CPLWAV='.T.'
export CPLWAV2ATM='.T.'
export FV3_RUN=cpld_control_run.IN