Skip to content

Commit

Permalink
Clean up hercules debug NOAA-EMC#574
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Nov 9, 2023
1 parent f623fb9 commit 5e4a738
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ush/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module list
set -x

# Set CONTROLPATH variable to user develop installation
CONTROLPATH="$DIR_ROOT/install/bin"
CONTROLPATH="$DIR_ROOT/../develop/install/bin"
# Collect BUILD Options
CMAKE_OPTS+=" -DCMAKE_BUILD_TYPE=$BUILD_TYPE"

Expand Down
4 changes: 2 additions & 2 deletions ush/sub_hercules
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ if [[ -w $SUBLOG ]];then
jobn=$(grep -i submitted $ofile|head -n1|cut -d\" -f2)
date -u +"%Y%m%d%H%M%S : $subcmd : $jobn" >>$SUBLOG
fi
#rm $cfile $ofile
#[[ $MKDATA = YES ]] && rmdir $DATA
rm $cfile $ofile
[[ $MKDATA = YES ]] && rmdir $DATA
exit $rc
2 changes: 2 additions & 0 deletions ush/sub_orion
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export jobname=${jobname:-$bn}
output=${output:-$jobname.out}
myuser=$LOGNAME
myhost=$(hostname)
exp=${jobname}

DATA=${ptmp:-/work/noaa/da/stmp/$LOGNAME/tmp}
mkdir -p $DATA
Expand All @@ -108,6 +109,7 @@ echo ""
echo "#SBATCH --output=$output" >> $cfile
echo "#SBATCH --job-name=$jobname" >> $cfile
echo "#SBATCH --qos=$queue" >> $cfile
echo "#SBATCH --partition=$partition" >> $cfile
echo "#SBATCH --time=$timew" >> $cfile
echo "#SBATCH --nodes=$nodes --ntasks-per-node=$procs --cpus-per-task=$threads" >> $cfile
echo "#SBATCH --account=$accnt" >> $cfile
Expand Down

0 comments on commit 5e4a738

Please sign in to comment.