Skip to contents

Companion to set_glm_param() for reading current values without needing an aeme object.

Usage

get_glm_param(path_glm, name, glm_file = find_glm_nml(path_glm))

Arguments

path_glm

filepath; directory containing the GLM-AED configuration

name

character vector; name(s) of the nml parameter(s) to read.

glm_file

filepath; path to the nml file to edit. Defaults to the GLM hydrodynamic nml (glm3.nml/glm4.nml) found in path_glm via find_glm_nml(). Pass the aed2.nml path directly to edit AED parameters instead.

Value

the parameter value if name has length 1, otherwise a named list of values

Examples

if (FALSE) { # \dontrun{
get_glm_param(path_glm, "Kw")
get_glm_param(path_glm, c("Kw", "coef_mix_hyp"))
} # }