You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/basics/common_solver_opts.md
+22-45Lines changed: 22 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,50 +29,38 @@ solve completely. Error controls only apply to iterative solvers.
29
29
30
30
## Verbosity Controls
31
31
32
-
The verbosity system in LinearSolve.jl provides fine-grained control over the diagnostic messages, warnings, and errors that are displayed during the solution of linear systems.
32
+
The verbosity system in LinearSolve.jl provides fine-grained control over the diagnostic messages, warnings, and errors that are displayed during the solution of linear systems. To use this system, a keyword argument `verbose` is provided to `solve`.
33
33
34
-
The verbosity system is organized hierarchically into three main categories:
35
-
36
-
1. Error Control - Messages related to fallbacks and error handling
37
-
2. Performance - Messages related to performance considerations
38
-
3. Numerical - Messages related to numerical solvers and iterations
39
-
40
-
Each category can be configured independently, and individual settings can be adjusted to suit your needs.
41
-
42
-
### Verbosity Levels
43
-
The following verbosity levels are available:
44
-
45
-
#### Individual Settings
46
-
These settings are meant for individual settings within a category. These can also be used to set all of the individual settings in a group to the same value.
47
-
- SciMLLogging.None() - Suppress all messages
48
-
- SciMLLogging.Info() - Show message as log message at info level
49
-
- SciMLLogging.Warn() - Show warnings (default for most settings)
50
-
- SciMLLogging.Error() - Throw errors instead of warnings
51
-
- SciMLLogging.Level(n) - Show messages with a log level setting of n
52
-
53
-
#### Group Settings
54
-
These settings are meant for controlling a group of settings.
55
-
- SciMLLogging.Default() - Use the default settings
56
-
- SciMLLogging.All() - Show all possible messages
34
+
```@docs
35
+
LinearVerbosity
36
+
```
57
37
58
38
### Basic Usage
59
39
60
40
#### Global Verbosity Control
61
41
62
-
```julia
42
+
```julia
63
43
using LinearSolve
64
44
65
45
# Suppress all messages
66
46
verbose =LinearVerbosity(SciMLLogging.None())
67
47
prob =LinearProblem(A, b)
68
48
sol =solve(prob; verbose=verbose)
69
49
70
-
# Show all messages
71
-
verbose =LinearVerbosity(SciMLLogging.All())
50
+
# Show only essential messages (critical errors and fatal issues)
51
+
verbose =LinearVerbosity(SciMLLogging.Minimal())
52
+
sol =solve(prob; verbose=verbose)
53
+
54
+
# Use default settings (balanced verbosity for typical usage)
55
+
verbose =LinearVerbosity(SciMLLogging.Standard())
56
+
sol =solve(prob; verbose=verbose)
57
+
58
+
# Show comprehensive debugging information
59
+
verbose =LinearVerbosity(SciMLLogging.Detailed())
72
60
sol =solve(prob; verbose=verbose)
73
61
74
-
#Use default settings
75
-
verbose =LinearVerbosity(SciMLLogging.Default())
62
+
#Show all messages (maximum verbosity)
63
+
verbose =LinearVerbosity(SciMLLogging.All())
76
64
sol =solve(prob; verbose=verbose)
77
65
```
78
66
@@ -82,7 +70,7 @@ sol = solve(prob; verbose=verbose)
82
70
# Customize by category
83
71
verbose =LinearVerbosity(
84
72
error_control = SciMLLogging.Warn(), # Show warnings for error control related issues
0 commit comments