forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update vcoord_gen utility for wcoss2.
Fixes ufs-community#559
- Loading branch information
1 parent
7d946c2
commit a61adfb
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |