Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add runWcoss.sh script, lump all plots into single job.
  • Loading branch information
EdwardSafford-NOAA committed Jun 24, 2024
1 parent 982f3c4 commit 64ec897
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/exobsmon_plot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ fi
${APRUN_PY} ${USHobsmon}/splitPlotYaml.py -i ${plot_yaml} -c ${chan_yaml}

#--------------------------------------------------------------
# Submit OM_sat_plots job if split yields any sat_*.yaml files
# Submit OM_plots job if split yields any *.yaml files
#
if compgen -G "${DATA}/sat_*.yaml" > /dev/null; then
if compgen -G "${DATA}/*.yaml" > /dev/null; then

jobname="OM_plot_all"
export logfile="${OM_LOGS}/${MODEL}/OM_plot.log"
Expand All @@ -51,14 +51,15 @@ if compgen -G "${DATA}/sat_*.yaml" > /dev/null; then
done


if compgen -G "${DATA}/sat*.yaml" > /dev/null; then
if (( ${ctr} > 0 )); then
case ${MACHINE_ID} in
hera)
${SUB} --account ${ACCOUNT} --ntasks=1 --mem=80000M --time=0:50:00 \
-J ${jobname} --partition service -o ${logfile} ${cmdfile}
;;

wcoss2)
chmod 775 ${cmdfile}
mem=$((4*${ctr}))
echo "submitting ${jobname} on wcoss2, ctr = $ctr, mem = $mem, cmdfile = ${cmdfile}"
cp ${USHobsmon}/runWcoss.sh .
Expand Down
25 changes: 25 additions & 0 deletions ush/runWcoss.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

st=`date`

module reset

module load libfabric/1.11.0.0.
module load PrgEnv-intel/8.3.3
module load craype
module load cray-pals
module load git/2.29.0
module load intel/19.1.3.304
module load python/3.10.4
module load ve/evs/1.0

export PATH=${PATH}:/lfs/h2/emc/da/noscrub/edward.safford/eva/opt/bin
export PYTHONPATH=${PYTHONPATH}:/lfs/h2/emc/da/noscrub/edward.safford/eva/opt/

if [ ! -z ${PBS_O_WORKDIR} ]; then cd ${PBS_O_WORKDIR}; fi

./${cmdfile}

end=`date`
echo "start: ${st}"
echo "end: ${end}"

0 comments on commit 64ec897

Please sign in to comment.