From 64ec897daa9f9cee2e17b6131889fd243817c419 Mon Sep 17 00:00:00 2001 From: "Edward.Safford" Date: Mon, 24 Jun 2024 17:13:46 +0000 Subject: [PATCH] Ref #32 Add runWcoss.sh script, lump all plots into single job. --- scripts/exobsmon_plot.sh | 7 ++++--- ush/runWcoss.sh | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 ush/runWcoss.sh diff --git a/scripts/exobsmon_plot.sh b/scripts/exobsmon_plot.sh index 0bfcc3c..9fd228e 100755 --- a/scripts/exobsmon_plot.sh +++ b/scripts/exobsmon_plot.sh @@ -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" @@ -51,7 +51,7 @@ 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 \ @@ -59,6 +59,7 @@ if compgen -G "${DATA}/sat_*.yaml" > /dev/null; then ;; wcoss2) + chmod 775 ${cmdfile} mem=$((4*${ctr})) echo "submitting ${jobname} on wcoss2, ctr = $ctr, mem = $mem, cmdfile = ${cmdfile}" cp ${USHobsmon}/runWcoss.sh . diff --git a/ush/runWcoss.sh b/ush/runWcoss.sh new file mode 100644 index 0000000..f8243dd --- /dev/null +++ b/ush/runWcoss.sh @@ -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}"