Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
42 changes: 42 additions & 0 deletions jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_ECEN
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
source "${HOMEgfs}/ush/preamble.sh"
export WIPE_DATA="NO"
export DATA="${DATAROOT}/${RUN}ocnanal_${cyc}"
Comment thread
AndrewEichmann-NOAA marked this conversation as resolved.
Outdated
source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalecen" -c "base ocnanalecen"


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

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

export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush:${PYTHONPATH}
Comment thread
AndrewEichmann-NOAA marked this conversation as resolved.
Outdated

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

EXSCRIPT=${GDASOCNRUNSH:-${HOMEgfs}/sorc/gdas.cd/scripts/exgdas_global_marine_analysis_ecen.py}
Comment thread
AndrewEichmann-NOAA marked this conversation as resolved.
Outdated
${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
18 changes: 18 additions & 0 deletions jobs/rocoto/ocnanalecen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /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}.$$"

###############################################################
# 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
Comment thread
AndrewEichmann-NOAA marked this conversation as 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