forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/g2_reg_test: This commit references ufs-community#64.
Update ./ush/chgres_cube.sh for GRIB2 option. Baseline new grib2 regression test script - c192.gfs.grib2.sh Correct error message in reg test script - c192.fv3.history.sh Update Dell regression test driver for grib2 test. Remove unused variables.
- Loading branch information
1 parent
e339b26
commit 70cd6c9
Showing
4 changed files
with
99 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres to create C192 coldstart files using GFS GRIB2 data | ||
# as input. The coldstart files are then compared to baseline files | ||
# using the 'nccmp' utility. This script is run by the machine specific | ||
# driver script. | ||
#----------------------------------------------------------------------------- | ||
|
||
set -x | ||
|
||
export DATA=$OUTDIR/c192_gfs_grib2 | ||
rm -fr $DATA | ||
|
||
export CRES=192 | ||
export FIXfv3=${HOMEreg}/fix/C192 | ||
export COMIN=${HOMEreg}/input_data/gfs.grib2 | ||
|
||
export GRIB2_FILE_INPUT=gfs.t00z.pgrb2.0p50.f000 | ||
export VCOORD_FILE=${HOMEufs}/fix/fix_am/global_hyblev.l65.txt | ||
export VARMAP_FILE=${HOMEufs}/parm/varmap_tables/GFSphys_var_map.txt | ||
export INPUT_TYPE='grib2' | ||
export CONVERT_NST=".false." | ||
|
||
export CDATE=2019110400 | ||
|
||
export OMP_NUM_THREADS_CY=1 | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres program. | ||
#----------------------------------------------------------------------------- | ||
|
||
echo "Starting at: " `date` | ||
|
||
${HOMEufs}/ush/chgres_cube.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
echo "<<< C192 GFS GRIB2 TEST FAILED. <<<" | ||
exit $iret | ||
fi | ||
|
||
echo "Ending at: " `date` | ||
|
||
#----------------------------------------------------------------------------- | ||
# Compare output from chgres to baseline set of data. | ||
#----------------------------------------------------------------------------- | ||
|
||
cd $DATA | ||
|
||
test_failed=0 | ||
for files in *.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/baseline_data/c192_gfs_grib2/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo "<<< C192 GFS GRIB2 TEST FAILED. >>>" | ||
else | ||
echo "<<< C192 GFS GRIB2 TEST PASSED. >>>" | ||
fi | ||
|
||
exit 0 |
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
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