Skip to content

Commit

Permalink
Added two optional tests. (NOAA-EMC#27) (#6) (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: BinLi-NOAA <bin.li@noaa.gov>
  • Loading branch information
DeniseWorthen and binli2337 authored Jun 9, 2020
1 parent bc4856a commit f989f6c
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 1 deletion.
25 changes: 25 additions & 0 deletions tests/datm_conf/test_case_cfsr.IN
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mkdir INPUT DATM_INPUT RESTART history MOM6_OUTPUT

# FV3 fixed input
cp @[RTPWD]/DATM/cfsr.SCRIP.nc DATM_INPUT
export IATM=1760
export JATM=880

# MOM6 fixed input
cp @[RTPWD]/MOM6_FIX_025deg/* ./INPUT

# CICE5 fixed input
cp @[RTPWD]/CICE_FIX_mx025/grid_cice_NEMS_mx025.nc .
cp @[RTPWD]/CICE_FIX_mx025/kmtu_cice_NEMS_mx025.nc .

# ICs
ln -s @[RTPWD]/DATM/CFSR/201110/cfsr*nc DATM_INPUT/
ln -s @[RTPWD]/DATM/CFSR/201111/cfsr*nc DATM_INPUT/
ln -s @[RTPWD]/DATM/CFSR/201112/cfsr*nc DATM_INPUT/
cp @[RTPWD]/MOM6_IC/2011100100/MOM*.nc ./INPUT
cp @[RTPWD]/CICE_IC/cice5_model_0.25.cpc*.nc cice5_model.res.nc

# WARM START
if [[ ! $MED_restart_data == '' ]]; then
cp @[RTPWD]/MEDIATOR_CFSR/mediator_* .
fi
25 changes: 25 additions & 0 deletions tests/datm_conf/test_case_gefs.IN
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mkdir INPUT DATM_INPUT RESTART history MOM6_OUTPUT

# FV3 fixed input
cp @[RTPWD]/DATM/gefs.SCRIP.nc DATM_INPUT
export IATM=1536
export JATM=768

# MOM6 fixed input
cp @[RTPWD]/MOM6_FIX_025deg/* ./INPUT

# CICE5 fixed input
cp @[RTPWD]/CICE_FIX_mx025/grid_cice_NEMS_mx025.nc .
cp @[RTPWD]/CICE_FIX_mx025/kmtu_cice_NEMS_mx025.nc .

# ICs
ln -s @[RTPWD]/DATM/GEFS/201110/gefs*nc DATM_INPUT/
ln -s @[RTPWD]/DATM/GEFS/201111/gefs*nc DATM_INPUT/
ln -s @[RTPWD]/DATM/GEFS/201112/gefs*nc DATM_INPUT/
cp @[RTPWD]/MOM6_IC/2011100100/MOM*.nc ./INPUT
cp @[RTPWD]/CICE_IC/cice5_model_0.25.cpc*.nc cice5_model.res.nc

# WARM START
if [[ ! $MED_restart_data == '' ]]; then
cp @[RTPWD]/MEDIATOR_GEFS/mediator_* .
fi
2 changes: 1 addition & 1 deletion tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export SYEAR='2011'
export SMONTH='10'
export SDAY='01'
export SHOUR='00'
export CDATE=$[SYEAR]$[SMONTH]$[SDAY]$[SHOUR]
export CDATE=${SYEAR}${SMONTH}${SDAY}${SHOUR}
export NFHOUT=6
export DAYS=0.041666666
export FHMAX=1
Expand Down
4 changes: 4 additions & 0 deletions tests/rt_20d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
COMPILE | coupled_DATM_MOM6_CICE | | hera.intel | datm |
COMPILE | coupled_DATM_MOM6_CICE | | orion.intel | datm |
RUN | cpld_datm_mom6_cice5_20d_cfsr | | | datm |
RUN | cpld_datm_mom6_cice5_20d_gefs | | | datm |
42 changes: 42 additions & 0 deletions tests/tests/cpld_datm_mom6_cice5_20d_cfsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#
# CPLD_DATM_MOM6_CICE_2D_ATM_FLUX test
#

export TEST_DESCR="DATM-MOM6-CICE system - 20-day run"

export CNTL_DIR="test_case_20d_CFSR"
export CNTLMED_DIR="test_case_20d_CFSR/RESTART"

export LIST_FILES=""
export_datm
export_cpl

export FILENAME_BASE='cfsr.'
export DATM_SRC='CFSR'
export IATM='1760'
export JATM='880'
export RESTART_INTERVAL=432000

export DAYS="20"
export FHMAX="480"
export FDIAG="6"
export WLCLK=240

# set component and coupling timesteps
export DT_CICE=${DT_ATMOS}
export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

# write a CICE restart at DAYS
export DUMPFREQ_N=${DAYS}
export DUMPFREQ="d"

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

export FV3_RUN=test_case_cfsr.IN

export MED_restart_data='MEDIATOR_CFSR'
export regression_test='NO'
40 changes: 40 additions & 0 deletions tests/tests/cpld_datm_mom6_cice5_20d_gefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# CPLD_DATM_MOM6_CICE_2D_ATM_FLUX test
#

export TEST_DESCR="DATM-MOM6-CICE system - 20-day run"

export CNTL_DIR="test_case_20d_GEFS"
export CNTLMED_DIR="test_case_20d_GEFS/RESTART"

export LIST_FILES=""
export_datm
export_cpl

export FILENAME_BASE='gefs.'
export DATM_SRC='GEFS'
export RESTART_INTERVAL=432000

export DAYS="20"
export FHMAX="480"
export FDIAG="6"
export WLCLK=240

# set component and coupling timesteps
export DT_CICE=${DT_ATMOS}
export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

# write a CICE restart at DAYS
export DUMPFREQ_N=${DAYS}
export DUMPFREQ="d"

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

export FV3_RUN=test_case_gefs.IN

export MED_restart_data='MEDIATOR_GEFS'
export regression_test='NO'

0 comments on commit f989f6c

Please sign in to comment.