Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/NonlinearSolveBase/src/verbosity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ function NonlinearVerbosity(;
end

# Build arguments using NamedTuple for type stability
# Use None() for linear_verbosity by default since BLAS errors are not fatal
# in the nonlinear solver context (the solver handles singular matrices gracefully)
default_args = (
linear_verbosity = linear_verbosity === nothing ? Minimal() : linear_verbosity,
linear_verbosity = linear_verbosity === nothing ? None() : linear_verbosity,
non_enclosing_interval = WarnLevel(),
alias_u0_immutable = WarnLevel(),
linsolve_failed_noncurrent = WarnLevel(),
Expand Down Expand Up @@ -167,8 +169,10 @@ end
function NonlinearVerbosity(verbose::AbstractVerbosityPreset)
if verbose isa Minimal
# Minimal: Only fatal errors and critical warnings
# Use None() for linear_verbosity since BLAS errors are not fatal
# in the nonlinear solver context (the solver handles singular matrices gracefully)
NonlinearVerbosity(
linear_verbosity = Minimal(),
linear_verbosity = None(),
non_enclosing_interval = WarnLevel(),
alias_u0_immutable = Silent(),
linsolve_failed_noncurrent = WarnLevel(),
Expand Down
Loading