-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segmentation fault in topo filtering code when processing ESG gri…
…ds (#238) * bugfix/topo_filter Remove seg faulting loop from filter_topo.F90. Instead always compute dy from lat/lon. Issue #236. * bugfix/topo_filter Add quotes to filter topo namelist variables. This fixed a program failure when using the Gnu compiler. Issue #236. * bugfix/topo_filter Add new regression test for regional ESG grid. Update hera grid_gen regression test script accordingly. Issue #236. * bugfix/topo_filter Bug fix to hera grid gen regression test driver script. Issue #236. * bugfix/topo_filter Update Dell grid gen regression test script for new esg regional test. Issue #236. * bugfix/topo_filter Update Jet grid gen regression test script for new ESG regional test. Issue #236. * bugfix/topo_filter Update orion grid gen regression test script for new ESG regional test. Issue #236. * bugfix/topo_filter Update Cray grid generation regression test script for new ESG regional test. Issue #236. Co-authored-by: Edward Hartnett <38856240+edwardhartnett@users.noreply.github.com>
- Loading branch information
1 parent
bb2724b
commit c5f4e99
Showing
8 changed files
with
120 additions
and
27 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
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,68 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------------- | ||
# Create a regional esg grid. 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}/esg.regional.work | ||
export out_dir=${WORK_DIR}/esg.regional | ||
|
||
export gtype=regional_esg | ||
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=1301 # Dimension of grid in 'i' direction | ||
export jdim=600 # Dimension of grid in 'j' direction | ||
export delx=0.0145 # Grid spacing in degrees in 'i' direction | ||
export dely=0.0145 # Grid spacing in degrees in 'j' direction | ||
export halo=3 | ||
|
||
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 "<<< ESG REGIONAL TEST FAILED. <<<" | ||
exit $iret | ||
fi | ||
|
||
echo "Ending at: " `date` | ||
|
||
#----------------------------------------------------------------------------- | ||
# Compare output to baseline set of data. | ||
#----------------------------------------------------------------------------- | ||
|
||
cd $out_dir/C3113 | ||
|
||
test_failed=0 | ||
for files in *tile*.nc ./fix_sfc/*tile*.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/esg.regional/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo "<<< ESG REGIONAL TEST FAILED. >>>" | ||
else | ||
echo "<<< ESG REGIONAL 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