Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 13 additions & 3 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,25 @@ rt_35d() {
cp tests/$TEST_NAME $new_test_name

if [[ $TEST_NAME =~ cold$ ]]; then
sed -i -e "s/\(export LIST_FILES\)/\1=\"ufs.s2s.cold.cpl.r.${sy}-${sm}-01-03600.nc\"/" $new_test_name
sed -i -e "s/\(export SYEAR\)/\1=\"$sy\"/" $new_test_name
sed -i -e "s/\(export SMONTH\)/\1=\"$sm\"/" $new_test_name
sed -i -e "s/\(export CNTL_DIR\)/\1='RT-Baselines_cold_bmwav_cmeps_${sy}'/" $new_test_name
sed -i -e "s/\(export CNTLMED_DIR\)/\1='MEDIATOR_bmwav_cmeps_${DATE_35D}'/" $new_test_name
if [[ $TEST_NAME =~ ww3 ]]; then
sed -i -e "s/\(export CNTL_DIR\)/\1='RT-Baselines_cold_bmwav_cmeps_${DATE_35D}'/" $new_test_name
sed -i -e "s/\(export CNTLMED_DIR\)/\1='MEDIATOR_bmwav_cmeps_${DATE_35D}'/" $new_test_name
else
sed -i -e "s/\(export CNTL_DIR\)/\1='RT-Baselines_cold_bm_cmeps_${DATE_35D}'/" $new_test_name
sed -i -e "s/\(export CNTLMED_DIR\)/\1='MEDIATOR_bm_cmeps_${DATE_35D}'/" $new_test_name
fi
elif [[ $TEST_NAME =~ 35d$ ]]; then
sed -i -e "s/\(export SYEAR\)/\1=\"$sy\"/" $new_test_name
sed -i -e "s/\(export SMONTH\)/\1=\"$sm\"/" $new_test_name
sed -i -e "s/\(export MED_restart_data\)/\1='MEDIATOR_bmwav_cmeps_${DATE_35D}'/" $new_test_name
DEP_RUN=${DEP_RUN}_${DATE_35D}
if [[ $TEST_NAME =~ ww3 ]]; then
sed -i -e "s/\(export MED_restart_data\)/\1='MEDIATOR_bmwav_cmeps_${DATE_35D}'/" $new_test_name
else
sed -i -e "s/\(export MED_restart_data\)/\1='MEDIATOR_bm_cmeps_${DATE_35D}'/" $new_test_name
fi
fi

TEST_NAME=${new_test_name#tests/}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/cpld_fv3_ccpp_384_mom6_cice_cmeps_cold
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export TEST_DESCR="Coupled FV3-CCPP-MOM6-CICE-CMEPS system - cold 384"
export CNTL_DIR
export CNTLMED_DIR

export LIST_FILES=""
export LIST_FILES

export_fv3
export_cpl
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/cpld_fv3_ccpp_384_mom6_cice_ww3_cmeps_cold
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export TEST_DESCR="Coupled FV3-CCPP-MOM6-CICE-CMEPS--WW3 system - cold 384"
export CNTL_DIR
export CNTLMED_DIR

export LIST_FILES=""
export LIST_FILES

export_fv3
export_cpl
Expand Down