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 grid generation driver script for Hera.
  • Loading branch information
GeorgeGayno-NOAA committed Apr 28, 2020
1 parent f23b73c commit 18af7cc
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/c96.regional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ for files in *.nc ./fix_sfc/*.nc
do
if [ -f $files ]; then
echo CHECK $files
$NCCMP -dmfqS $files $HOMEreg/baseline_data/c96.regional/$files
$NCCMP -dmfqS $files $HOMEreg/c96.regional/$files
iret=$?
if [ $iret -ne 0 ]; then
test_failed=1
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/c96.uniform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for files in *.nc ./fix_sfc/*.nc
do
if [ -f $files ]; then
echo CHECK $files
$NCCMP -dmfqS $files $HOMEreg/baseline_data/c96.uniform/$files
$NCCMP -dmfqS $files $HOMEreg/c96.uniform/$files
iret=$?
if [ $iret -ne 0 ]; then
test_failed=1
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export OMP_STACKSIZE=2048m
export machine=WCOSS_DELL_P3

export NCCMP=/gpfs/dell2/emc/modeling/noscrub/George.Gayno/util/nccmp/nccmp-1.8.5.0/src/nccmp
export HOMEreg=/gpfs/dell2/emc/modeling/noscrub/George.Gayno/ufs_utils.git/reg_tests/grid_gen
export HOMEreg=/gpfs/dell2/emc/modeling/noscrub/George.Gayno/ufs_utils.git/reg_tests/grid_gen/baseline_data

ulimit -a
ulimit -s unlimited
Expand Down
48 changes: 48 additions & 0 deletions reg_tests/grid_gen/driver.hera.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

. /apps/lmod/lmod/init/sh
module purge
module load intel/18.0.5.274
module load impi/2018.0.4
module load hdf5/1.10.5
module load netcdf/4.7.0
module list

set -x

LOG_FILE=regression.log
SUM_FILE=summary.log
QUEUE="batch"
PROJECT_CODE="fv3-cpu"

export home_dir=$PWD/../..
export WORK_DIR=/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.grid
rm -f $WORK_DIR

export APRUN=time
export APRUN_SFC=srun
export OMP_STACKSIZE=2048m
export machine=HERA

export NCCMP=/apps/nccmp/1.8.5/intel/18.0.3.051/bin/nccmp
export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/grid_gen/baseline_data

ulimit -a
ulimit -s unlimited

export OMP_NUM_THREADS=24
TEST1=$(sbatch --parsable --ntasks-per-node=24 --nodes=1 -t 0:15:00 -A $PROJECT_CODE -q $QUEUE -J c96.uniform \
-o $LOG_FILE -e $LOG_FILE ./c96.uniform.sh)

TEST2=$(sbatch --parsable --ntasks-per-node=24 --nodes=1 -t 0:15:00 -A $PROJECT_CODE -q $QUEUE -J c96.regional \
-o $LOG_FILE -e $LOG_FILE -d afterok:$TEST1 ./c96.regional.sh)

#-----------------------------------------------------------------------------
# Create summary log.
#-----------------------------------------------------------------------------

sbatch --nodes=1 -t 0:01:00 -A $PROJECT_CODE -J grid_summary -o $LOG_FILE -e $LOG_FILE \
--open-mode=append -q $QUEUE -d afterok:$TEST2 << EOF
#!/bin/sh
grep -a '<<<' $LOG_FILE > $SUM_FILE
EOF

0 comments on commit 18af7cc

Please sign in to comment.