Skip to content

Commit

Permalink
Update wcoss-dell script.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed May 19, 2022
1 parent bf2ea4d commit b40895b
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions reg_tests/snow2mdl/driver.wcoss_dell_p3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,22 @@

#-----------------------------------------------------------------------------
#
# Run snow2mdl consistency test on WCOSS-Dell.
# Run snow2mdl consistency tests on WCOSS-Dell.
#
# Set $DATA to your working directory. Set the project code (BSUB -P)
# and queue (BSUB -q) as appropriate.
# Set $DATA_ROOT to your working directory. Set the project code
# and queue as appropriate.
#
# Invoke the script as follows: cat $script | bsub
# Invoke the script as follows: ./$script
#
# Log output is placed in consistency.log. A summary is
# placed in summary.log
#
# The test fails when its output does not match the baseline file
# as determined by the 'cmp' command. The baseline file is
# as determined by the 'cmp' command. The baseline files are
# stored in HOMEreg.
#
#-----------------------------------------------------------------------------

#BSUB -W 0:02
#BSUB -o consistency.log
#BSUB -e consistency.log
#BSUB -J s2m_regt
#BSUB -q debug
#BSUB -R "affinity[core(1)]"
#BSUB -P GFS-DEV

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target.intel
Expand All @@ -34,8 +26,11 @@ module list

set -x

export DATA="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/snow2mdl"
export DATA_ROOT="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export DATA_ROOT="${DATA_ROOT}/reg-tests/snow2mdl"

PROJECT_CODE=${PROJECT_CODE:-"GFS-DEV"}
QUEUE=${QUEUE:-"debug"}

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand All @@ -53,8 +48,20 @@ export HOMEgfs=$PWD/../..
export WGRIB=/gpfs/dell1/nco/ops/nwprod/grib_util.v1.0.6/exec/wgrib
export WGRIB2=/gpfs/dell1/nco/ops/nwprod/grib_util.v1.0.6/exec/wgrib2

rm -fr $DATA
LOG_FILE=consistency.log
SUM_FILE=summary.log

rm -fr $DATA_ROOT

export DATA=$DATA_ROOT/test.ops
bsub -e $LOG_FILE -o $LOG_FILE -q $QUEUE -P $PROJECT_CODE -J snow.ops -W 0:02 \
-R "affinity[core(1)]" "$PWD/snow2mdl.ops.sh"

export DATA=$DATA_ROOT/test.global
bsub -e $LOG_FILE -o $LOG_FILE -q $QUEUE -P $PROJECT_CODE -J snow.global -W 0:02 \
-R "affinity[core(1)]" -w 'ended(snow.ops)' "$PWD/snow2mdl.global.sh"

./snow2mdl.sh
bsub -o $LOG_FILE -q $QUEUE -P $PROJECT_CODE -J summary -R "affinity[core(1)]" -R "rusage[mem=100]" -W 0:01 \
-w 'ended(snow.global)' "grep -a '<<<' $LOG_FILE >> $SUM_FILE"

exit 0

0 comments on commit b40895b

Please sign in to comment.