Skip to content

Commit

Permalink
Minor script fixes for the first cycle regression test
Browse files Browse the repository at this point in the history
required after the recent merge.

Fixes ufs-community#549.
  • Loading branch information
GeorgeGayno-NOAA committed Jan 3, 2024
1 parent 5d10ed6 commit 5a870df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
6 changes: 2 additions & 4 deletions reg_tests/global_cycle/C768.fv3gfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export FHOUR=00
export DELTSFC=6

export CASE=C768
export OCNRES=99999

export COMIN=$HOMEreg/input_data
export FNTSFA=$COMIN/gdas.t00z.rtgssthr.grb
Expand All @@ -32,8 +33,7 @@ export JCAP=1534
export LONB=3072
export LATB=1536

export OROFIX=$BASE_GSM/fix/orog/$CASE
export OROFILE=${CASE}_oro_data
export OROFIX=$HOMEreg/fix/$CASE

export FIXgsm=$BASE_GSM/fix/am

Expand All @@ -50,8 +50,6 @@ export FNSLPC=$FIXgsm/global_slope.1x1.grb
export FNABSC=$FIXgsm/global_mxsnoalb.uariz.t1534.3072.1536.rg.grb
export FNAISC=$FIXgsm/CFSR.SEAICE.1982.2012.monthly.clim.grb

export FIXfv3=$HOMEreg/fix

export DONST="YES"
export use_ufo=.true.

Expand Down
4 changes: 3 additions & 1 deletion reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module list
WORK_DIR="${WORK_DIR:-/scratch2/NCEPDEV/stmp1/$LOGNAME}"

PROJECT_CODE="${PROJECT_CODE:-fv3-cpu}"
QUEUE="${QUEUE:-batch}"
QUEUE="${QUEUE:-debug}"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down Expand Up @@ -61,6 +61,8 @@ export COMOUT=$DATA
TEST1=$(sbatch --parsable --ntasks-per-node=6 --nodes=1 -t 0:05:00 -A $PROJECT_CODE -q $QUEUE -J c768.fv3gfs \
-o $LOG_FILE -e $LOG_FILE ./C768.fv3gfs.sh)

exit

LOG_FILE=consistency.log02
export DATA="${DATA_DIR}/test2"
export COMOUT=$DATA
Expand Down
11 changes: 5 additions & 6 deletions ush/global_cycle_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export FIXam=${FIXam:-$FIX_DIR/am}
export OROFIX=${OROFIX:-$FIX_DIR/orog/${CASE}.mx${OCNRES}_frac}
export FIX_SFC=${FIX_SFC:-$OROFIX/sfc}

OROFILE=${OROFILE:-oro_${CASE}.mx${OCNRES}}

ntiles=${ntiles:-6}
DONST=${DONST:-"NO"}
COMIN=${COMIN:-$pwd}
Expand Down Expand Up @@ -90,11 +88,11 @@ for n in $(seq 1 $ntiles); do
chmod 644 $COMOUT/$PDY.${cyc}0000.sfcanl_data.tile${n}.nc
ln -fs $COMOUT/$PDY.${cyc}0000.sfcanl_data.tile${n}.nc $DATA/fnbgso.00$n

ln -fs $FIXfv3/C${CRES}/C${CRES}_grid.tile${n}.nc $DATA/fngrid.00$n
if [ -z "${ocn}" ];then
ln -fs $FIXfv3/C${CRES}/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n
ln -fs $OROFIX/C${CRES}_grid.tile${n}.nc $DATA/fngrid.00$n
if (( OCNRES > 9999 ));then
ln -fs $OROFIX/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n
else
ln -fs $FIXfv3/C${CRES}/C${CRES}.mx${ocn}_oro_data.tile${n}.nc $DATA/fnorog.00$n
ln -fs $OROFIX/C${CRES}.mx${OCNRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n
fi

if [[ "$DO_SNO_INC" == ".true." ]] ; then
Expand All @@ -103,6 +101,7 @@ for n in $(seq 1 $ntiles); do
done

$CYCLESH

rc=$?
if [[ $rc -ne 0 ]] ; then
echo "***ERROR*** rc= $rc"
Expand Down

0 comments on commit 5a870df

Please sign in to comment.