Skip to contents

DEVerbosity(...) collects the levels ("Silent", "DebugLevel", "InfoLevel", "WarnLevel" or "ErrorLevel") of the diagnostic messages of the differential equation solvers, one per toggle (such as dt_NaN, max_iters, alg_switch or the SDE toggle noise_evaluation), with the presets of DiffEqBase: "Standard" (the default), "None", "Minimal", "Detailed" and "All"; TRUE and FALSE stand for "Standard" and "None". The nested linear_verbosity and nonlinear_verbosity are preset names for the linear and nonlinear solvers. Toggles given in ... override the preset.

Usage

DEVerbosity(
  ...,
  preset = "Standard",
  linear_verbosity = NULL,
  nonlinear_verbosity = NULL
)

Arguments

...

Toggles, such as alg_switch = "InfoLevel".

preset

A preset name or a logical.

linear_verbosity, nonlinear_verbosity

Presets of the inner solvers; by default those of preset.

Value

An object of class DEVerbosity, a named character vector with the inner presets as attributes.

Examples

v <- DEVerbosity(alg_switch = "InfoLevel")
v[["alg_switch"]]
#> [1] "InfoLevel"
DEVerbosity(preset = "None")[["dt_NaN"]]
#> [1] "Silent"