#!/bin/sh
# This shell script runs the GRIDSPEC make_vgrid tests.
# $Id: run_tests.in,v 1.1 2009/09/01 17:16:07 ed Exp $

set -e
echo ""
echo "*** Testing gridspec vgrids."

echo "*** generating regular lon-lat grid (supergrid size 60x20)..."
./make_vgrid --nbnds 3 --bnds 10,200,1000 --nz 10,20
./gs_make_vgrid --nbnds 3 --bnds 10,200,1000 --nz 10,20 --grid_name gs_vertical_grid
@NCDUMPDIR@/ncdump vertical_grid.nc > vertical_grid.cdl
@NCDUMPDIR@/ncdump -n vertical_grid gs_vertical_grid.nc > gs_vertical_grid.cdl
#diff -w vertical_grid.cdl gs_vertical_grid.cdl 

echo "*** All gridspec vgrid tests passed!"
exit 0
