Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global-workflow infrastructure for ocean analysis recentering task #2299

Merged
merged 20 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_ECEN
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalecen" -c "base ocnanal ocnanalecen"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is ocnanal config needed in this task?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For JEDI_BIN

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is in JEDI_BIN? All executables are in HOMEgfs/exec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also for SOCA_INPUT_FIX_DIR


##############################################
# Set variables used in the script
##############################################

##############################################
# Begin JOB SPECIFIC work
##############################################

###############################################################
# Run relevant script

EXSCRIPT=${GDASOCNCENPY:-${HOMEgfs}/ush/exgdas_global_marine_analysis_ecen.py}
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

##############################################
# End JOB SPECIFIC work
##############################################

##############################################
# Final processing
##############################################
if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || exit 1
[[ "${KEEPDATA}" = "NO" ]] && rm -rf "${DATA}"

exit 0
23 changes: 23 additions & 0 deletions jobs/rocoto/ocnanalecen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source UFSDA workflow modules
. "${HOMEgfs}/ush/load_ufsda_modules.sh"
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

export job="ocnanalecen"
export jobid="${job}.$$"

###############################################################
# Setup Python path for GDASApp ush
PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush:${PYTHONPATH}
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
export PYTHONPATH

###############################################################
# Execute the JJOB
"${HOMEgfs}"/jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_ECEN
status=$?
exit "${status}"
11 changes: 11 additions & 0 deletions parm/config/gfs/config.ocnanalecen
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

########## config.ocnanalecen ##########
# Ocn Analysis specific

echo "BEGIN: config.ocnanalecen"

# Get task specific resources
. "${EXPDIR}/config.resources" ocnanalecen

echo "END: config.ocnanalecen"
67 changes: 48 additions & 19 deletions parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (( $# != 1 )); then
echo "waveinit waveprep wavepostsbs wavepostbndpnt wavepostbndpntbll wavepostpnt"
echo "wavegempak waveawipsbulls waveawipsgridded"
echo "postsnd awips gempak npoess"
echo "ocnanalprep prepoceanobs ocnanalbmat ocnanalrun ocnanalchkpt ocnanalpost ocnanalvrfy"
echo "ocnanalprep prepoceanobs ocnanalbmat ocnanalrun ocnanalecen ocnanalchkpt ocnanalpost ocnanalvrfy"
exit 1

fi
Expand Down Expand Up @@ -357,12 +357,12 @@ case ${step} in

"ocnanalbmat")
npes=16
case ${CASE} in
"C384") npes=480;;
"C96") npes=16;;
"C48") npes=16;;
case ${OCNRES} in
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
"025") npes=480;;
"050") npes=16;;
"500") npes=16;;
*)
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${CASE}"
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${OCNRES}"
exit 4
esac

Expand All @@ -375,20 +375,21 @@ case ${step} in

"ocnanalrun")
npes=16
case ${CASE} in
"C384")
npes=480
memory_ocnanalrun="128GB"
case ${OCNRES} in
"025")
npes=40
memory_ocnanalrun="96GB"
;;
"C96")
"050")
npes=16
memory_ocnanalrun="96GB"
;;
"C48")
"500")
npes=16
memory_ocnanalrun="64GB"
memory_ocnanalrun="24GB"
;;
*)
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${CASE}"
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${OCNRES}"
exit 4
esac

Expand All @@ -400,23 +401,51 @@ case ${step} in
export memory_ocnanalrun
;;

"ocnanalecen")
npes=16
case ${OCNRES} in
"025")
npes=40
memory_ocnanalecen="96GB"
;;
"050")
npes=16
memory_ocnanalecen="96GB"
;;
"500")
npes=16
memory_ocnanalecen="24GB"
;;
*)
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${OCNRES}"
exit 4
esac

export wtime_ocnanalecen="00:10:00"
export npe_ocnanalecen=${npes}
export nth_ocnanalecen=1
export is_exclusive=True
export npe_node_ocnanalecen=$(( npe_node_max / nth_ocnanalecen ))
export memory_ocnanalecen
;;

"ocnanalchkpt")
export wtime_ocnanalchkpt="00:10:00"
export npe_ocnanalchkpt=1
export nth_ocnanalchkpt=1
export npe_node_ocnanalchkpt=$(( npe_node_max / nth_ocnanalchkpt ))
case ${CASE} in
"C384")
case ${OCNRES} in
"025")
memory_ocnanalchkpt="128GB"
npes=40;;
"C96")
"050")
memory_ocnanalchkpt="32GB"
npes=16;;
"C48")
"500")
memory_ocnanalchkpt="32GB"
npes=8;;
*)
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${CASE}"
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${OCNRES}"
exit 4
esac
export npe_ocnanalchkpt=${npes}
Expand Down
Loading