From 0a84646a7b312dad82997a028dcc970aac705d01 Mon Sep 17 00:00:00 2001 From: AndrewEichmann-NOAA <58948505+AndrewEichmann-NOAA@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:21:55 -0400 Subject: [PATCH] Add jjob stub for prospective ocean analysis prep observation task (#1831) --- jobs/JGLOBAL_PREP_OCEAN_OBS | 38 +++++++++++++++++++++++++++++ jobs/rocoto/prepoceanobs.sh | 19 +++++++++++++++ parm/config/gfs/config.prepoceanobs | 10 ++++++++ parm/config/gfs/config.resources | 12 ++++++++- 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100755 jobs/JGLOBAL_PREP_OCEAN_OBS create mode 100755 jobs/rocoto/prepoceanobs.sh create mode 100644 parm/config/gfs/config.prepoceanobs diff --git a/jobs/JGLOBAL_PREP_OCEAN_OBS b/jobs/JGLOBAL_PREP_OCEAN_OBS new file mode 100755 index 0000000000..a93d1a9636 --- /dev/null +++ b/jobs/JGLOBAL_PREP_OCEAN_OBS @@ -0,0 +1,38 @@ +#!/bin/bash +export STRICT="NO" +source "${HOMEgfs}/ush/preamble.sh" +source "${HOMEgfs}/ush/jjob_header.sh" -e "prepoceanobs" -c "base prepoceanobs" + + +############################################## +# Set variables used in the script +############################################## + +############################################## +# Begin JOB SPECIFIC work +############################################## + + +############################################################### +# Run relevant script + +# the relevant script goes here + +############################################## +# End JOB SPECIFIC work +############################################## + +############################################## +# Final processing +############################################## +if [[ -e "${pgmout}" ]] ; then + cat "${pgmout}" +fi + +########################################## +# Handle the temporary working directory +########################################## +cd "${DATAROOT}" || (echo "FATAL ERROR: ${DATAROOT} does not exist. ABORT!"; exit 1) +[[ ${KEEPDATA} = "NO" ]] && rm -rf "${DATA}" + +exit 0 diff --git a/jobs/rocoto/prepoceanobs.sh b/jobs/rocoto/prepoceanobs.sh new file mode 100755 index 0000000000..d7ae87851f --- /dev/null +++ b/jobs/rocoto/prepoceanobs.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +export STRICT="NO" +source "${HOMEgfs}/ush/preamble.sh" + +############################################################### +# Source UFSDA workflow modules +. "${HOMEgfs}/ush/load_ufsda_modules.sh" +status=$? +[[ ${status} -ne 0 ]] && exit "${status}" + +export job="prepoceanobs" +export jobid="${job}.$$" + +############################################################### +# Execute the JJOB +"${HOMEgfs}"/jobs/JGLOBAL_PREP_OCEAN_OBS +status=$? +exit "${status}" diff --git a/parm/config/gfs/config.prepoceanobs b/parm/config/gfs/config.prepoceanobs new file mode 100644 index 0000000000..051769b6ee --- /dev/null +++ b/parm/config/gfs/config.prepoceanobs @@ -0,0 +1,10 @@ +#!/bin/bash + +########## config.prepoceanobs ########## +# Pre Ocn Analysis specific + +echo "BEGIN: config.config.prepoceanobs" + +# Get task specific resources +. "${EXPDIR}/config.resources" prepoceanobs +echo "END: config.prepoceanobs" diff --git a/parm/config/gfs/config.resources b/parm/config/gfs/config.resources index 624155671e..17a1423589 100644 --- a/parm/config/gfs/config.resources +++ b/parm/config/gfs/config.resources @@ -20,7 +20,7 @@ if [[ $# -ne 1 ]]; then echo "waveinit waveprep wavepostsbs wavepostbndpnt wavepostbndpntbll wavepostpnt" echo "wavegempak waveawipsbulls waveawipsgridded" echo "postsnd awips gempak" - echo "ocnanalprep ocnanalbmat ocnanalrun ocnanalchkpt ocnanalpost ocnanalvrfy" + echo "ocnanalprep prepoceanobs ocnanalbmat ocnanalrun ocnanalchkpt ocnanalpost ocnanalvrfy" exit 1 fi @@ -345,6 +345,16 @@ elif [[ "${step}" = "ocnanalprep" ]]; then export npe_node_ocnanalprep export memory_ocnanalprep="24GB" +elif [[ "${step}" = "prepoceanobs" ]]; then + + export wtime_prepoceanobs="00:10:00" + export npe_prepoceanobs=1 + export nth_prepoceanobs=1 + npe_node_prepoceanobs=$(echo "${npe_node_max} / ${nth_prepoceanobs}" | bc) + export npe_node_prepoceanobs + export memory_prepoceanobs="24GB" + + elif [[ "${step}" = "ocnanalbmat" ]]; then npes=16 case ${CASE} in