Skip to content

Commit

Permalink
Update diag table for coupled aerosols
Browse files Browse the repository at this point in the history
Now that aerosols are permitted to run with coupled, a new diag table
is needed for that configuration. Instead of adding nested ifs to
handle the different combinations, the coupled diag table is moved
out into its own block, then if aerosols are on, '_aer' is appended to
the file name, whichever diag table is used.

In the future, I hope to break diag_table up into pieces that can be
assembled based on component (see Issue NOAA-EMC#567).

Refs: NOAA-EMC#516
  • Loading branch information
WalterKolczynski-NOAA committed Jan 13, 2022
1 parent ac784ac commit c75772b
Show file tree
Hide file tree
Showing 2 changed files with 339 additions and 3 deletions.
9 changes: 6 additions & 3 deletions parm/config/config.fcst
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,17 @@ elif [[ "$CDUMP" == "gfs" ]] ; then # GFS cycle specific parameters

fi

if [[ $DO_COUPLED = "YES" ]] ; then # coupled model
export DIAG_TABLE="$HOMEgfs/parm/parm_fv3diag/diag_table_cpl"
fi

if [ $DO_AERO = "YES" ]; then # temporary settings for aerosol coupling
export DIAG_TABLE="$HOMEgfs/parm/parm_fv3diag/diag_table_aer"
export DIAG_TABLE="${DIAG_TABLE}_aer"
export FIELD_TABLE="$HOMEgfs/parm/parm_fv3diag/field_table_aer"
# TODO
export CHM_CFGDIR="not_set"
export CHM_INPDIR="not_set"
export dnats="$(( $dnats + 0 ))"
elif [[ $DO_COUPLED = "YES" ]] ; then # coupled model
export DIAG_TABLE="$HOMEgfs/parm/parm_fv3diag/diag_table_cpl"
fi

# Remember config.efcs will over-ride these values for ensemble forecasts
Expand Down
Loading

0 comments on commit c75772b

Please sign in to comment.