forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for regional grid that uses GSL GWD
orography. Update hera regression driver script. Fixes ufs-community#253
- Loading branch information
1 parent
673d382
commit 6dced69
Showing
4 changed files
with
82 additions
and
7 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
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,69 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------------- | ||
# Create a regional esg grid with GSL gravity wave drag files. | ||
# Compare output to a set of baseline files using the 'nccmp' utility. | ||
# This script is run by the machine specific driver script. | ||
#----------------------------------------------------------------------- | ||
|
||
set -x | ||
|
||
export TEMP_DIR=${WORK_DIR}/regional.gsl.gwd.work | ||
export out_dir=${WORK_DIR}/regional.gsl.gwd | ||
|
||
export gtype=regional_esg | ||
export make_gsl_orog=true # Create GSL gravity wave drag fields | ||
export target_lon=-97.5 # Center longitude of the highest resolution tile | ||
export target_lat=35.5 # Center latitude of the highest resolution tile | ||
export idim=301 # Dimension of grid in 'i' direction | ||
export jdim=200 # Dimension of grid in 'j' direction | ||
export delx=0.0585 # Grid spacing in degrees in 'i' direction | ||
export dely=0.0585 # Grid spacing in degrees in 'j' direction | ||
export halo=4 | ||
|
||
NCCMP=${NCCMP:-$(which nccmp)} | ||
|
||
#----------------------------------------------------------------------- | ||
# Start script. | ||
#----------------------------------------------------------------------- | ||
|
||
echo "Starting at: " `date` | ||
|
||
$home_dir/ush/fv3gfs_driver_grid.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
set +x | ||
echo "<<< REGIONAL GSL GWD TEST FAILED. <<<" | ||
exit $iret | ||
fi | ||
|
||
echo "Ending at: " `date` | ||
|
||
#----------------------------------------------------------------------------- | ||
# Compare output to baseline set of data. | ||
#----------------------------------------------------------------------------- | ||
|
||
cd $out_dir/C772 | ||
|
||
test_failed=0 | ||
for files in *tile*.nc ./fix_sfc/*tile*.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/regional.gsl.gwd/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo "<<< REGIONAL GSL GWD TEST FAILED. >>>" | ||
else | ||
echo "<<< REGIONAL GSL GWD 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