From 931184341180b0bc51ec16b07fd1672bfc742b1b Mon Sep 17 00:00:00 2001 From: "kate.friedman" Date: Tue, 7 Nov 2023 20:21:14 +0000 Subject: [PATCH] Create and use config.tropcy - Create new config for common tracker and genesis settings. - Update tracker and genesis configs to source config.tropcy. Refs #1988 --- parm/config/gfs/config.genesis | 3 ++- parm/config/gfs/config.genesis_fsu | 3 ++- parm/config/gfs/config.tracker | 14 ++------------ parm/config/gfs/config.tropcy | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 parm/config/gfs/config.tropcy diff --git a/parm/config/gfs/config.genesis b/parm/config/gfs/config.genesis index 83ac44c146..62a1bf88c0 100644 --- a/parm/config/gfs/config.genesis +++ b/parm/config/gfs/config.genesis @@ -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" diff --git a/parm/config/gfs/config.genesis_fsu b/parm/config/gfs/config.genesis_fsu index 125b476b63..13948592c4 100644 --- a/parm/config/gfs/config.genesis_fsu +++ b/parm/config/gfs/config.genesis_fsu @@ -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" diff --git a/parm/config/gfs/config.tracker b/parm/config/gfs/config.tracker index 9436eda3e5..71fcf9196d 100644 --- a/parm/config/gfs/config.tracker +++ b/parm/config/gfs/config.tracker @@ -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" diff --git a/parm/config/gfs/config.tropcy b/parm/config/gfs/config.tropcy new file mode 100644 index 0000000000..2a7fd12b6d --- /dev/null +++ b/parm/config/gfs/config.tropcy @@ -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"