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.
Create sfc_climo_gen utility script for wcoss2.
Fixes ufs-community#559.
- Loading branch information
1 parent
da9db59
commit 301f5d1
Showing
1 changed file
with
84 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------ | ||
# Run the sfc_climo_gen program stand-alone on WCOSS2 using | ||
# pre-exiting 'grid' and 'orography files. | ||
# | ||
# To run, type: 'qsub $script' | ||
#------------------------------------------------------------ | ||
|
||
#PBS -o log | ||
#PBS -e log | ||
#PBS -q debug | ||
#PBS -A GFS-DEV | ||
#PBS -N grid_fv3 | ||
#PBS -l walltime=00:10:00 | ||
#PBS -l select=1:ncpus=48 | ||
|
||
set -x | ||
|
||
export BASE_DIR=$PBS_O_WORKDIR/../.. | ||
|
||
source ${BASE_DIR}/sorc/machine-setup.sh > /dev/null 2>&1 | ||
module use ${BASE_DIR}/modulefiles | ||
module load build.$target.intel | ||
module list | ||
|
||
#------------------------------------- | ||
# Set model resolution. | ||
#------------------------------------- | ||
|
||
export res=384 | ||
|
||
#------------------------------------- | ||
# Where the model "grid", "mosaic" and "oro" files reside. | ||
#------------------------------------- | ||
|
||
export FIX_FV3=${BASE_DIR}/fix/fix_fv3_gmted2010/C${res} | ||
|
||
#------------------------------------- | ||
# Uncomment for regional grids. | ||
#------------------------------------- | ||
|
||
##HALO=3 | ||
##export GRIDTYPE=regional | ||
|
||
#------------------------------------- | ||
# Choose which virrs data to use. | ||
#------------------------------------- | ||
|
||
export veg_type_src="viirs.igbp.0.05" # Use global 0.05-degree viirs data | ||
#export veg_type_src="viirs.igbp.0.1" # Use global 0.1-degree viirs data | ||
#export veg_type_src="viirs.igbp.0.03" # Use global 0.03-degree viirs data | ||
#export veg_type_src="viirs.igbp.conus.0.01" # Use CONUS 0.01-degree virrs data. Do not | ||
# use for global grids. | ||
|
||
#------------------------------------- | ||
# Set working directory and directory where output files will be saved. | ||
#------------------------------------- | ||
|
||
export WORK_DIR=/lfs/h2/emc/stmp/$LOGNAME/work.sfc | ||
export SAVE_DIR=/lfs/h2/emc/stmp/$LOGNAME/sfc.C${res} | ||
|
||
#------------------------------------- | ||
# Should not have to touch anything below here. | ||
#------------------------------------- | ||
|
||
if [[ $GRIDTYPE = "regional" ]]; then | ||
HALO=$(( $HALO + 1 )) | ||
export HALO | ||
ln -fs $FIX_FV3/C${res}_grid.tile7.halo${HALO}.nc $FIX_FV3/C${res}_grid.tile7.nc | ||
ln -fs $FIX_FV3/C${res}_oro_data.tile7.halo${HALO}.nc $FIX_FV3/C${res}_oro_data.tile7.nc | ||
fi | ||
|
||
export input_sfc_climo_dir=${BASE_DIR}/fix/fix_sfc_climo | ||
export APRUN_SFC="mpiexec -n 24 -ppn 24" | ||
|
||
ulimit -a | ||
ulimit -s unlimited | ||
|
||
rm -fr $WORK_DIR $SAVE_DIR | ||
|
||
${BASE_DIR}/ush/sfc_climo_gen.sh | ||
|
||
exit |