Skip to content

Commit

Permalink
GitHub Issue NOAA-EMC#266: add DOGAUSFCANL capability back to JGLOBAL…
Browse files Browse the repository at this point in the history
…_ATMOS_ANALYSIS_CALC and exglobal_atmos_analysis_calc.sh
  • Loading branch information
RussTreadon-NOAA committed Dec 14, 2021
1 parent 9422758 commit a75d6ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jobs/JGLOBAL_ATMOS_ANALYSIS_CALC
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ if [ $DOHYBVAR = "YES" ]; then
fi


# Generate Gaussian surface analysis
export DOGAUSFCANL=${DOGAUSFCANL:-"YES"}


###############################################################
# Run relevant script
env
Expand Down
18 changes: 17 additions & 1 deletion scripts/exglobal_atmos_analysis_calc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ export NTHREADS_CHGRES=${NTHREADS_CHGRES:-1}
CALCINCPY=${CALCINCPY:-$HOMEgfs/ush/calcinc_gfs.py}
CALCANLPY=${CALCANLPY:-$HOMEgfs/ush/calcanl_gfs.py}

DOGAUSFCANL=${DOGAUSFCANL-"NO"}
GAUSFCANLSH=${GAUSFCANLSH:-$HOMEgfs/ush/gaussian_sfcanl.sh}
export GAUSFCANLEXE=${GAUSFCANLEXE:-$HOMEgfs/exec/gaussian_sfcanl.exe}
NTHREADS_GAUSFCANL=${NTHREADS_GAUSFCANL:-1}
APRUN_GAUSFCANL=${APRUN_GAUSFCANL:-${APRUN:-""}}

# OPS flags
RUN=${RUN:-""}
SENDECF=${SENDECF:-"NO"}
Expand Down Expand Up @@ -184,7 +190,17 @@ else
echo "Neither increment nor analysis are generated by external utils"
fi

echo "$CDUMP $CDATE atmanl done at `date`" > $COMOUT/${APREFIX}loganl.txt
##############################################################
# Create gaussian grid surface analysis file at middle of window
if [ $DOGAUSFCANL = "YES" ]; then
export APRUNSFC=$APRUN_GAUSFCANL
export OMP_NUM_THREADS_SFC=$NTHREADS_GAUSFCANL

$GAUSFCANLSH
export err=$?; err_chk
fi

echo "$CDUMP $CDATE atmanl and sfcanl done at `date`" > $COMOUT/${APREFIX}loganl.txt

################################################################################
# Postprocessing
Expand Down

0 comments on commit a75d6ed

Please sign in to comment.