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

fix rt.sh for 35 day tests #157

Merged
merged 2 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions tests/tests/cpld_fv3_ccpp_384_mom6_cice_cmeps_35d
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export SMONTH
export SDAY="01"
export SHOUR="00"

export DAYS="35"
export FHMAX="840"
export DAYS="2"
export FHMAX="48"
export FDIAG="6"
export WLCLK=480

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
4 changes: 2 additions & 2 deletions tests/tests/cpld_fv3_ccpp_384_mom6_cice_ww3_cmeps_35d
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export SMONTH
export SDAY="01"
export SHOUR="00"

export DAYS="35"
export FHMAX="840"
export DAYS="2"
export FHMAX="48"
export FDIAG="6"
export WLCLK=480

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