Skip to contents

NonlinearVerbosity() holds the message levels ("Silent", "DebugLevel", "InfoLevel", "WarnLevel", "ErrorLevel") of the diagnostics of NonlinearSolve, as its SciMLLogging specifier. preset is one of "None", "Minimal", "Standard" (the default), "Detailed" and "All" (TRUE and FALSE stand for "Standard" and "None"); a group (error_control, numerical, sensitivity) sets all its toggles, and individual toggles in ... override both. linear_verbosity is the verbosity of the linear solves.

Usage

NonlinearVerbosity(
  preset = "Standard",
  error_control = NULL,
  numerical = NULL,
  sensitivity = NULL,
  linear_verbosity = NULL,
  ...
)

Arguments

preset

A preset name or a logical.

error_control, numerical, sensitivity

Levels of the groups.

linear_verbosity

Verbosity of the linear solver.

...

Individual toggles, such as forcing = "Silent".

Value

A NonlinearVerbosity object.

Examples

v <- NonlinearVerbosity(numerical = "Silent", termination_condition = "ErrorLevel")
v$toggles
#>     non_enclosing_interval         alias_u0_immutable 
#>                "WarnLevel"                "WarnLevel" 
#> linsolve_failed_noncurrent      termination_condition 
#>                "WarnLevel"               "ErrorLevel" 
#>            threshold_state                    forcing 
#>                   "Silent"                   "Silent" 
#>     sensitivity_vjp_choice  unsupported_postcondition 
#>                "WarnLevel"               "ErrorLevel" 
NonlinearVerbosity("None")$toggles[["forcing"]]
#> [1] "Silent"