Skip to content

Commit f976675

Browse files
committed
Proof of concept for exposing package variable defaults.
Related to #1354.
1 parent 5117093 commit f976675

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

config/mesh_defaults.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,22 @@ case $GRIDNAME in
108108
NAFILE=cpra_2024_hurricane_v04b2_chk.13
109109
fi
110110
;;
111+
# !! Dev Note: 'default' exposes variables so they can also be customized to
112+
# some degree, via $ASGS_CONFIG; but is that is not enough we could have
113+
# "custom" case or even one that uses a fort.15 template that requires
114+
# everything to be explicitly defined in the ASGS_CONFIG (maximally configurable)
111115
"default")
112116
NAFILE=cpra_2024_hurricane_v04c_chk.13.template
113117
CONTROLTEMPLATE=CPRA24.15.ASGS2024.1.template
114118
# numerics/physics (fort.15)
115-
advection="off" # on|off for advection (NOLICA=1|0/NOLICAT=1|0)
116-
solver_time_integration="implicit" # implicit|explicit|full-gravity-wave-implicit
117-
time_weighting_coefficients="0.35 0.3 0.35" # A00 B00 C00 in fort.15
118-
lateral_turbulence="eddy_viscosity" # "smagorinsky" or "eddy_viscosity"
119-
eddy_viscosity_coefficient="2.0" # ESLM
120-
bottom_friction_limit=0.001 # min when using Manning's n (CF/FFACTOR)
121-
h0=0.1 # min depth (m) to be considered wet
122-
velmin=0.01
119+
advection=${F15_advection:-"off"} # on|off for advection (NOLICA=1|0/NOLICAT=1|0)
120+
solver_time_integration=${F15_solver_time_integration:-"implicit"} # implicit|explicit|full-gravity-wave-implicit
121+
time_weighting_coefficients=${F15_time_weighting_coefficients:-"0.35 0.3 0.35"} # A00 B00 C00 in fort.15
122+
lateral_turbulence=${F15_lateral_turbulence:-"eddy_viscosity"} # "smagorinsky" or "eddy_viscosity"
123+
eddy_viscosity_coefficient=${F15_eddy_viscosity_coefficient:-"2.0"} # ESLM
124+
bottom_friction_limit=${F15_bottom_friction_limit:-0.001} # min when using Manning's n (CF/FFACTOR)
125+
h0=${F15_h0:-0.1 } # min depth (m) to be considered wet
126+
velmin=${F15_velmin:-0.01}
123127
nodal_attribute_activate=( surface_submergence_state )
124128
nodal_attribute_activate+=( surface_directional_effective_roughness_length )
125129
nodal_attribute_activate+=( surface_canopy_coefficient )

0 commit comments

Comments
 (0)