Skip to content

Commit

Permalink
Update vcoord_gen utility for wcoss2.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Sep 9, 2021
1 parent 7d946c2 commit a61adfb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion util/vcoord_gen/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#-------------------------------------------------------------------------------
#
# Generate a hybrid coordinate interface profile. On WCOSS-Cray, use
# 'run.cray.sh'.
# 'run.cray.sh'. On WCOSS2, use 'run.wcoss2.sh'.
#
# Build the repository using the ./build_all.sh script before running.
#
Expand Down
56 changes: 56 additions & 0 deletions util/vcoord_gen/run.wcoss2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash

#PBS -l walltime=00:02:00
#PBS -o log
#PBS -e log
#PBS -N vcoord
#PBS -q debug
#PBS -A GFS-DEV
#PBS -l select=1:ncpus=2:mem=1MB

#-------------------------------------------------------------------------------
#
# Generate a hybrid coordinate interface profile on WCOSS2.
#
# Build the repository using the ./build_all.sh script before running.
#
# Output 'ak' and 'bk' values are placed in $outfile.
#
# To run this script, do: 'qsub $script'
#
#-------------------------------------------------------------------------------

cd $PBS_O_WORKDIR

set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target.intel
module list

outfile="./global_hyblev.txt"

levs=128 # integer number of levels
lupp=88 # integer number of levels below pupp
pbot=100000.0 # real nominal surface pressure (Pa)
psig=99500.0 # real nominal pressure where coordinate changes
# from pure sigma (Pa)
ppre=7000.0 # real nominal pressure where coordinate changes
# to pure pressure (Pa)
pupp=7000.0 # real nominal pressure where coordinate changes
# to upper atmospheric profile (Pa)
ptop=0.0 # real pressure at top (Pa)
dpbot=240.0 # real coordinate thickness at bottom (Pa)
dpsig=1200.0 # real thickness of zone within which coordinate changes
# to pure sigma (Pa)
dppre=18000.0 # real thickness of zone within which coordinate changes
# to pure pressure (Pa)
dpupp=550.0 # real coordinate thickness at pupp (Pa)
dptop=1.0 # real coordinate thickness at top (Pa)

rm -f $outfile

echo $levs $lupp $pbot $psig $ppre $pupp $ptop $dpbot $dpsig $dppre $dpupp $dptop | ../../exec/vcoord_gen > $outfile

exit

0 comments on commit a61adfb

Please sign in to comment.