Skip to content

Commit

Permalink
Create and use config.tropcy
Browse files Browse the repository at this point in the history
- Create new config for common tracker and genesis settings.
- Update tracker and genesis configs to source config.tropcy.

Refs NOAA-EMC#1988
  • Loading branch information
KateFriedman-NOAA committed Nov 7, 2023
1 parent 64bfe75 commit 9311843
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
3 changes: 2 additions & 1 deletion parm/config/gfs/config.genesis
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ echo "BEGIN: config.genesis"
# Get task specific resources
. "${EXPDIR}/config.resources" genesis

export SENDCOM="YES" # Needed by genesis scripts still
# Get tropcy settings
. "${EXPDIR}/config.tropcy"

echo "END: config.genesis"
3 changes: 2 additions & 1 deletion parm/config/gfs/config.genesis_fsu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ echo "BEGIN: config.genesis_fsu"
# Get task specific resources
. "${EXPDIR}/config.resources" genesis_fsu

export SENDCOM="YES" # Needed by genesis scripts still
# Get tropcy settings
. "${EXPDIR}/config.tropcy"

echo "END: config.genesis_fsu"
14 changes: 2 additions & 12 deletions parm/config/gfs/config.tracker
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,7 @@ echo "BEGIN: config.tracker"
# Get task specific resources
. "${EXPDIR}/config.resources" tracker

export COMINsyn=${COMINsyn:-$(compath.py "${envir}/com/gfs/${gfs_ver}")/syndat}

export SENDCOM="YES" # Needed by tracker scripts still

if [[ "${RUN}" = "gdas" ]]; then
export FHOUT_CYCLONE=3
export FHMAX_CYCLONE=${FHMAX}
else
export FHOUT_CYCLONE=6
FHMAX_CYCLONE=$(( FHMAX_GFS<240 ? FHMAX_GFS : 240 ))
export FHMAX_CYCLONE
fi
# Get tropcy settings
. "${EXPDIR}/config.tropcy"

echo "END: config.tracker"
14 changes: 14 additions & 0 deletions parm/config/gfs/config.tropcy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /usr/bin/env bash

########## config.tropcy ##########
echo "BEGIN: config.tropcy"

export COMINsyn=${COMINsyn:-$(compath.py "${envir}/com/gfs/${gfs_ver}")/syndat}

export SENDCOM="YES" # Needed by tracker scripts still

export FHOUT_CYCLONE=6
FHMAX_CYCLONE=$(( FHMAX_GFS<240 ? FHMAX_GFS : 240 ))
export FHMAX_CYCLONE

echo "END: config.tropcy"

0 comments on commit 9311843

Please sign in to comment.