Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Save off work & try on hera
  • Loading branch information
EdwardSafford-NOAA committed May 9, 2024
1 parent c5f9c95 commit 9f9634d
Show file tree
Hide file tree
Showing 7 changed files with 687 additions and 591 deletions.
12 changes: 8 additions & 4 deletions driver/runObsMon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export COMOUT=${COMOUT}/${NET}
jobname="PlotObsMon"
jobfile="${JOBSobsmon}/JMON_PLOT_OBS"

logdir="${OM_LOGS}/${MODEL}"
LOGDIR="${OM_LOGS}/${MODEL}"
if [[ ! -d ${logdir} ]]; then mkdir -p ${logdir}; fi

logfile="${OM_LOGS}/${MODEL}/OM_log"
Expand All @@ -101,9 +101,13 @@ case ${MACHINE_ID} in
-J ${jobname} --partition service -o ${logfile} ${jobfile}
;;

wcoss2) # NOTE: this has not been tested; eva doesn't yet run on wcoss2
$SUB -q $JOB_QUEUE -A $ACCOUNT -o ${logfile} -e ${logfile} \
-V -l select=1:mem=500M -l walltime=0:05:00 -N ${jobname} ${jobfile}
wcoss2)
$SUB -q ${JOB_QUEUE} -A ${ACCOUNT} -o ${logfile} -e ${logfile} \
-v "PYTHONPATH=${PYTHONPATH}, PATH=${PATH}, HOMEobsmon=${HOMEobsmon}, COMOUT=${COMOUT}, \
MODEL=${MODEL}, PDY=${PDY}, cyc=${cyc}, DATAROOT=${DATAROOT}, APRUN_PY=${APRUN_PY}, \
MACHINE_ID=${MACHINE_ID}, ACCOUNT=${ACCOUNT}, JOB_QUEUE=${JOB_QUEUE}, SUB=${SUB},
OM_LOGS=${OM_LOGS}" \
-l select=1:mem=500M -l walltime=0:05:00 -N ${jobname} ${jobfile}
;;
esac

Expand Down
39 changes: 36 additions & 3 deletions jobs/JMON_PLOT_OBS
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
#!/bin/bash

echo "PYTHONPATH: $PYTHONPATH"
#echo "HOMEobsmon: $HOMEobsmon"
#echo "COMOUT: $COMOUT"
#echo "MODEL: $MODEL"
#echo "PDY: $PDY"
#echo "cyc: $cyc"
#echo "DATAROOT: $DATAROOT"
#echo "APRUN_PY: $APRUN_PY"
echo "PATH: $PATH"
echo "initial module list"
module list
echo ""
echo ""

module purge
echo "after module purge"
module list

module load PrgEnv-intel/8.3.3
module load craype/2.7.17
module load cray-pals/1.2.2
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
module load libfabric/1.11.0.0
echo ""
echo "reloaded modules"
`module list`

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/

###########################
# J-job for Mon Plot Obs
###########################
Expand Down Expand Up @@ -48,8 +81,8 @@ fi
####################
# Remove workspace
####################
KEEPDATA=${KEEPDATA:-"NO"}
cd ${DATAROOT}
[[ ${KEEPDATA} = "NO" ]] && rm -rf ${DATA}
#KEEPDATA=${KEEPDATA:-"NO"}
#cd ${DATAROOT}
#[[ ${KEEPDATA} = "NO" ]] && rm -rf ${DATA}

report-mem
Loading

0 comments on commit 9f9634d

Please sign in to comment.