These functions update the relative or absolute tolerance values only for the custom tolerance configuration.
Arguments
- .x
a model object.
- .rtol
a named numeric list or vector, where names reference selected model compartments and relative tolerances for those compartments;
custom_tol()also accepts the name of an object in the model environment to be used.- .atol
a named numeric list or vector, where names reference selected model compartments and absolute tolerances for those compartments;
custom_tol()also accepts the name of an object in the model environment to be used.- .default
the default tolerance value to use for compartments not listed in
.rtol,.atol, or...; if not supplied, the current scalar value in.xwill be used.- .use
logical; ifTRUE, then a call touse_custom_tol()will be made prior to return; ifFALSE, a call touse_scalar_tol()will be made; under expected use, the value for this argument is keptTRUE, so that whenever tolerances are customized, they will be used in the next simulation run.- ...
name/valuepairs, wherenamereferences a model compartment andvalueis a new, numeric value to use forrtoloratol.
Details
New tolerance values can be supplied by either a named, numeric vector or
list via .rtol and .atol or via ... or by both. If duplicate
compartment names are found in ... and either .rtol or .atol, the value
passed via ... will take precedence.
The custom_tol() function provides a mechanism for coding customized
tolerances into the model file itself. Simply create named numeric lists
or vectors for customized rtol or atol in a $ENV block. On loading
the model, call custom_tol() and supply the names of those objects as
.rtol and .atol.