From f98433ff3661ef848d381ae65322623573a114cc Mon Sep 17 00:00:00 2001 From: AndrewEichmann-NOAA <58948505+AndrewEichmann-NOAA@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:11:39 -0500 Subject: [PATCH] Add new jjob for ocean analysis bmat (#1239) Adds jjob for ocean analysis bmat. The intent is to have separate tasks for the ocean analysis and generation of the b matrix. Once this is merged, additional modifications will be made to GDASApp to allow it to be run with the other global-workflow components of ocean/ice DA Refs: https://github.com/NOAA-EMC/GDASApp/issues/263 --- jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT diff --git a/jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT b/jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT new file mode 100755 index 0000000000..a218967cc2 --- /dev/null +++ b/jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT @@ -0,0 +1,45 @@ +#!/bin/bash +export STRICT="NO" +source "${HOMEgfs}/ush/preamble.sh" + + +export DATA="${DATAROOT}/${RUN}ocnanal_${cyc}" +source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalrun" -c "base ocnanal ocnanalrun" + + +############################################## +# Set variables used in the script +############################################## + + +############################################## +# Begin JOB SPECIFIC work +############################################## + +export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/ocean} + +############################################################### +# Run relevant script + +EXSCRIPT=${GDASPREPPY:-${HOMEgfs}/sorc/gdas.cd/scripts/exgdas_global_marine_analysis_bmat.sh} +${EXSCRIPT} +status=$? +[[ ${status} -ne 0 ]] && exit "${status}" + +############################################## +# End JOB SPECIFIC work +############################################## + +############################################## +# Final processing +############################################## +if [[ -e "${pgmout}" ]] ; then + cat "${pgmout}" +fi + +########################################## +# Do not remove the Temporary working directory (do this in POST) +########################################## +cd "${DATAROOT}" || exit 1 + +exit 0