-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rasmgshoc test, add rasmgshoc debug test, add to rt.conf and r…
…t_gnu.conf
- Loading branch information
Showing
6 changed files
with
662 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,69 @@ | ||
rm -fr INPUT RESTART | ||
if [ $NPX = 97 ]; then | ||
inputdir=FV3_input_data | ||
elif [ $NPX = 193 ]; then | ||
inputdir=FV3_input_data192 | ||
elif [ $NPX = 385 ]; then | ||
inputdir=FV3_input_data384 | ||
elif [ $NPX = 769 ]; then | ||
inputdir=FV3_input_data_c768 | ||
fi | ||
echo "inputdir=$inputdir,NPX=$NPX" | ||
|
||
UNIT_TEST=${UNIT_TEST:-false} | ||
SUFFIX=${RT_SUFFIX} | ||
if [ $WARM_START = .F. ]; then | ||
cp -r @[INPUTDATA_ROOT]/FV3_input_data/INPUT . | ||
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT . | ||
mkdir RESTART | ||
else | ||
mkdir INPUT RESTART | ||
cp -r @[INPUTDATA_ROOT]/FV3_input_data/RESTART/* ./INPUT | ||
|
||
if [[ ${UNIT_TEST} == true ]]; then | ||
SUFFIX=${BL_SUFFIX} | ||
fi | ||
|
||
rsync -arv ../fv3_rasmgshoc${SUFFIX}/RESTART/ INPUT/ | ||
if [[ $IAU_INC_FILES = 'fv3_increment.nc' ]] || [[ $READ_INCREMENT = '.T.' ]]; then | ||
#read_inc and iau tests restart from fh=24 | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/coupler.res INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/fv_core.res.* INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/fv_srf_wnd.res.* INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/fv_tracer.* INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/phy_data.* INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/sfc_data.* INPUT/. | ||
cp ../fv3_rasmgshoc${SUFFIX}/INPUT/fv3_increment.nc INPUT/. | ||
cd INPUT | ||
else | ||
#restart test start from fh=12 | ||
cp ../fv3_rasmgshoc${SUFFIX}/RESTART/20161003.120000.* INPUT/. | ||
cd INPUT | ||
for RFILE in 20161003.120000.*; do | ||
[ -e $RFILE ] || exit 1 | ||
mv $RFILE ${RFILE#20161003.120000.} | ||
done | ||
fi | ||
cp ../../fv3_rasmgshoc${SUFFIX}/INPUT/grid_spec.nc . | ||
cp ../../fv3_rasmgshoc${SUFFIX}/INPUT/*_grid.tile*.nc . | ||
cp ../../fv3_rasmgshoc${SUFFIX}/INPUT/oro_data.tile*.nc . | ||
cd .. | ||
|
||
fi | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/INPUT/aerosol.dat . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/INPUT/co2historicaldata_201*.txt . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/INPUT/sfc_emissivity_idx.txt . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/INPUT/solarconstant_noaa_an.txt . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/ozprdlos_2015_new_sbuvO3_tclm15_nuchem.f77 ./global_o3prdlos.f77 | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/global_h2o_pltc.f77 ./global_h2oprdlos.f77 | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/*grb . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/*_table . | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/diag_table_mgtkers diag_table | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/field_table_rasmgshoc field_table | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/*configure . | ||
|
||
cp @[INPUTDATA_ROOT]/${inputdir}/INPUT/aerosol.dat . | ||
cp @[INPUTDATA_ROOT]/${inputdir}/INPUT/co2historicaldata_201*.txt . | ||
cp @[INPUTDATA_ROOT]/${inputdir}/INPUT/sfc_emissivity_idx.txt . | ||
cp @[INPUTDATA_ROOT]/${inputdir}/INPUT/solarconstant_noaa_an.txt . | ||
if [ $OZ_PHYS_NEW = .T. ]; then | ||
cp @[INPUTDATA_ROOT]/${inputdir}/ozprdlos_2015_new_sbuvO3_tclm15_nuchem.f77 ./global_o3prdlos.f77 | ||
elif [ $OZ_PHYS_OLD = .T. ]; then | ||
cp @[INPUTDATA_ROOT]/${inputdir}/INPUT/global_o3prdlos.f77 . | ||
fi | ||
if [ $H2O_PHYS = .T. ]; then | ||
cp @[INPUTDATA_ROOT]/FV3_input_data/global_h2o_pltc.f77 ./global_h2oprdlos.f77 | ||
fi | ||
cp @[INPUTDATA_ROOT]/${inputdir}/*grb . | ||
cp @[INPUTDATA_ROOT]/${inputdir}/*_table . | ||
cp @[INPUTDATA_ROOT]/${inputdir}/diag_table_mgtkers diag_table | ||
cp @[INPUTDATA_ROOT]/${inputdir}/field_table_rasmgshoc field_table | ||
cp @[INPUTDATA_ROOT]/${inputdir}/*configure . | ||
|
Oops, something went wrong.