Skip to content

Commit

Permalink
feature/reg_tests This commit references ufs-community#99.
Browse files Browse the repository at this point in the history
Add snow2mdl reg test driver for Cray.  Update snow2mdl
script prologs.
  • Loading branch information
GeorgeGayno-NOAA committed Apr 30, 2020
1 parent 61bffe9 commit 9dea088
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 8 deletions.
49 changes: 49 additions & 0 deletions reg_tests/snow2mdl/driver.cray.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

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

#BSUB -W 0:02
#BSUB -o regression.log
#BSUB -e regression.log
#BSUB -J s2m_regt
#BSUB -q debug
#BSUB -R "rusage[mem=2000]"
#BSUB -P GFS-DEV

set -x

module load PrgEnv-intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.snow2mdl

#-----------------------------------------------------------------------------
# Should not have to change anything below.
#-----------------------------------------------------------------------------

export HOMEreg=/gpfs/hps3/emc/global/noscrub/George.Gayno/ufs_utils.git/reg_tests/snow2mdl
export HOMEgfs=$PWD/../..
export WGRIB=/gpfs/hps/nco/ops/nwprod/grib_util.v1.0.2/exec/wgrib
export WGRIB2=/gpfs/hps/nco/ops/nwprod/grib_util.v1.0.2/exec/wgrib2

rm -fr $DATA

./snow2mdl.sh

exit 0
28 changes: 24 additions & 4 deletions reg_tests/snow2mdl/driver.dell.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/bin/bash

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

#BSUB -W 0:02
#BSUB -o regression.log
#BSUB -e regression.log
Expand All @@ -10,17 +28,19 @@

set -x

export DATA=/gpfs/dell1/stmp/$LOGNAME/reg_tests.snow2mdl

export DATA=/gpfs/dell1/stmp/George.Gayno/reg_tests.snow2mdl


rm -fr $DATA
#-----------------------------------------------------------------------------
# Should not have to change anything below.
#-----------------------------------------------------------------------------

export HOMEreg=/gpfs/dell2/emc/modeling/noscrub/George.Gayno/ufs_utils.git/reg_tests/snow2mdl
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

./snow2mdl.sh

exit 0
23 changes: 22 additions & 1 deletion reg_tests/snow2mdl/driver.hera.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/bin/bash

#-----------------------------------------------------------------------------
#
# Run snow2mdl regression test on Hera.
#
# Set $DATA to your working directory. Set the project code (SBATCH -A)
# and queue (SBATCH -q) as appropriate.
#
# Invoke the script as follows: sbatch $script
#
# Log output is placed in regression.log. A summary is
# placed in summary.log
#
# The test fails when its output does not match the baseline files
# as determined by the 'cmp' command. The baseline files are
# stored in HOMEreg.
#
#-----------------------------------------------------------------------------

#SBATCH -J snow
#SBATCH -A fv3-cpu
#SBATCH --open-mode=truncate
Expand All @@ -13,8 +31,11 @@ set -x

module load intel

export DATA="/scratch2/NCEPDEV/stmp1/George.Gayno/snow2mdl"
export DATA="/scratch2/NCEPDEV/stmp1/$LOGNAME/snow2mdl"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
#-----------------------------------------------------------------------------

rm -fr $DATA

Expand Down
27 changes: 24 additions & 3 deletions reg_tests/snow2mdl/driver.jet.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/bin/bash

#-----------------------------------------------------------------------------
#
# Run snow2mdl regression test on Jet.
#
# Set $DATA to your working directory. Set the project code (SBATCH -A)
# and queue (SBATCH -q) as appropriate.
#
# Invoke the script as follows: sbatch $script
#
# Log output is placed in regression.log. A summary is
# placed in summary.log
#
# The test fails when its output does not match the baseline files
# as determined by the 'cmp' command. The baseline files are
# stored in HOMEreg.
#
#-----------------------------------------------------------------------------

#SBATCH --nodes=1
#SBATCH --partition=sjet
#SBATCH --time 0:01
Expand All @@ -14,16 +32,19 @@ module unload intel
module load intel/18.0.5.274
module list

export DATA="/mnt/lfs3/projects/emcda/George.Gayno/stmp/snow2mdl"

export DATA="/mnt/lfs3/projects/emcda/$LOGNAME/stmp/snow2mdl"

rm -fr $DATA
#-----------------------------------------------------------------------------
# Should not have to change anything below.
#-----------------------------------------------------------------------------

export HOMEreg=/lfs3/HFIP/emcda/George.Gayno/reg_tests/snow2mdl
export HOMEgfs=$PWD/../..
export WGRIB=/apps/wgrib/1.8.1.0b/bin/wgrib
export WGRIB2=/apps/wgrib2/0.1.9.6a/bin/wgrib2

rm -fr $DATA

./snow2mdl.sh

exit 0
5 changes: 5 additions & 0 deletions reg_tests/snow2mdl/snow2mdl.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

#--------------------------------------------------------------------------
# Create a T1534 snow file. This script is run from its machine-specific
# driver.
#--------------------------------------------------------------------------

set -x

export IMS_FILE=$HOMEreg/input_data/imssnow96.grb
Expand Down

0 comments on commit 9dea088

Please sign in to comment.