#!/bin/sh
#
#
BARODIR=$HOME/work/baro

RESOLUTION=t10l01
MODELNAME=

CNTLDIR=$BARODIR/cntl/sample
DATADIR=$BARODIR/data/sample

INPUT=$CNTLDIR/sample.ctl
OUTPUT=$CNTLDIR/sample.out
#
RUN=$BARODIR/bin/baro.$RESOLUTION$MODELNAME
#
##################################################################
#
cat << END_OF_DATA > $INPUT
##################################################################
 &nmrun  run='TEST001', sign='BARO' &end
#
 &nmintg  tunit='HOUR', delt=  1, inistp=  3 &end 
#
 &nmtime  tunit='DAY', start=  0, end=  1, intrst=  0 &end
#
 &nmfile  vmiss=   -999.00000000000  &end
#
 &nminit  file='test.init' &end
#
 &nmhist  item='VOR', file='VOR.out'
          tunit='SEC',  intout=10, intsum=1
 &end
#
 &nmrstr  file='test.rst', dfmt= 'UR4' &end
END_OF_DATA
##################################################################
#
        cd $DATADIR
        $RUN < $INPUT 1> $OUTPUT 2>&1
