
Get the stored initial-conditions specification
Source:R/set_initial_conditions.R
get_initial_conditions.RdReturn the structured initial-conditions specification set by
set_initial_conditions(), or, for a single model, that model's
resolved initial conditions (its overrides merged over the generic
defaults).
Value
A list. When model is NULL, the stored specification (a list
with a default element and an element per model with overrides), or
NULL if none has been set. When model is supplied, a list with any
of depth, profile and wq.
Examples
aeme_file <- system.file("extdata/aeme.rds", package = "AEME")
aeme <- readRDS(aeme_file)
aeme <- set_initial_conditions(aeme, depth = 10)
#> ✔ Initial conditions updated.
get_initial_conditions(aeme)
#> $default
#> $default$depth
#> [1] 10
#>
#>
get_initial_conditions(aeme, model = "glm_aed")
#> $depth
#> [1] 10
#>