Skip to content

Commit

Permalink
Update ./ush/chgres_cube.sh to use the 'orog' files for the
Browse files Browse the repository at this point in the history
coupled or uncoupled model.

Fixes ufs-community#867.
  • Loading branch information
GeorgeGayno-NOAA committed Dec 14, 2023
1 parent 466ec01 commit 66feea1
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions ush/chgres_cube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ set -eux

CRES=${CRES:-96}

#----------------------------------------------------------------------------
# Resolution of ocean grid. When declared, use the orography files
# for coupled model runs. Example: 025, 050, 100.
#----------------------------------------------------------------------------

ocn=${ocn:-""}

#----------------------------------------------------------------------------
# Set up environment paths.
#
Expand Down Expand Up @@ -175,9 +182,15 @@ MOSAIC_FILE_TARGET_GRID=${MOSAIC_FILE_TARGET_GRID:-${FIXfv3}/C${CRES}_mosaic.nc}

OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID:-NULL}
if [ $OROG_FILES_TARGET_GRID == NULL ]; then
OROG_FILES_TARGET_GRID='C'${CRES}'_oro_data.tile1.nc","C'${CRES}'_oro_data.tile2.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}'_oro_data.tile3.nc","C'${CRES}'_oro_data.tile4.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}'_oro_data.tile5.nc","C'${CRES}'_oro_data.tile6.nc'
if [ -z "${ocn}" ];then
OROG_FILES_TARGET_GRID='C'${CRES}'_oro_data.tile1.nc","C'${CRES}'_oro_data.tile2.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}'_oro_data.tile3.nc","C'${CRES}'_oro_data.tile4.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}'_oro_data.tile5.nc","C'${CRES}'_oro_data.tile6.nc'
else
OROG_FILES_TARGET_GRID='C'${CRES}.mx${ocn}'_oro_data.tile1.nc","C'${CRES}.mx${ocn}'_oro_data.tile2.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}.mx${ocn}'_oro_data.tile3.nc","C'${CRES}.mx${ocn}'_oro_data.tile4.nc"'
OROG_FILES_TARGET_GRID=${OROG_FILES_TARGET_GRID}',"C'${CRES}.mx${ocn}'_oro_data.tile5.nc","C'${CRES}.mx${ocn}'_oro_data.tile6.nc'
fi
fi

THOMPSON_AEROSOL_FILE=${THOMPSON_AEROSOL_FILE:-NULL}
Expand Down

0 comments on commit 66feea1

Please sign in to comment.