Skip to content

Commit 444ce71

Browse files
committed
use correct names
1 parent d89c73e commit 444ce71

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

lib/NonlinearSolveBase/src/NonlinearSolveBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ include("public.jl")
3838
include("utils.jl")
3939
include("verbosity.jl")
4040

41-
const non_linear_verbose = ScopedValue(NonlinearVerbosity())
41+
const nonlinear_verbose = ScopedValue(NonlinearVerbosity())
4242

4343
include("abstract_types.jl")
4444
include("common_defaults.jl")

lib/NonlinearSolveBase/src/autodiff.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function select_forward_mode_autodiff(
2525
!is_finite_differences_backend(ad)
2626

2727
@SciMLMessage("The chosen AD backend $(ad) is not a forward mode AD. Use with caution.",
28-
nonlinear_verbosity[], :fd_ad_caution, :error_control)
28+
nonlinear_verbose[], :fd_ad_caution, :error_control)
2929

3030
end
3131
if incompatible_backend_and_problem(prob, ad)
@@ -34,7 +34,7 @@ function select_forward_mode_autodiff(
3434
@SciMLMessage("The chosen AD backend `$(ad)` does not support the chosen problem. This \
3535
could be because the backend package for the chosen AD isn't loaded. After \
3636
running autodiff selection detected `$(adₙ)` as a potential forward mode \
37-
backend.", nonlinear_verbosity[], :ad_backend_incompatible, :error_control)
37+
backend.", nonlinear_verbose[], :ad_backend_incompatible, :error_control)
3838

3939
return adₙ
4040
end
@@ -56,14 +56,14 @@ function select_reverse_mode_autodiff(
5656
!(ADTypes.mode(ad) isa ADTypes.ForwardOrReverseMode) &&
5757
!is_finite_differences_backend(ad)
5858
@SciMLMessage("The chosen AD backend $(ad) is not a forward mode AD. Use with caution.",
59-
nonlinear_verbosity[], :fd_ad_caution, :error_control)
59+
nonlinear_verbose[], :fd_ad_caution, :error_control)
6060
end
6161
if incompatible_backend_and_problem(prob, ad)
6262
adₙ = select_reverse_mode_autodiff(prob, nothing; warn_check_mode)
6363
@SciMLMessage("The chosen AD backend `$(ad)` does not support the chosen problem. This \
6464
could be because the backend package for the chosen AD isn't loaded. After \
6565
running autodiff selection detected `$(adₙ)` as a potential forward mode \
66-
backend.", nonlinear_verbosity[], :ad_backend_incompatible, :error_control)
66+
backend.", nonlinear_verbose[], :ad_backend_incompatible, :error_control)
6767
return adₙ
6868
end
6969
return ad
@@ -84,7 +84,7 @@ function select_jacobian_autodiff(prob::AbstractNonlinearProblem, ad::AbstractAD
8484
@SciMLMessage("The chosen AD backend `$(ad)` does not support the chosen problem. This \
8585
could be because the backend package for the chosen AD isn't loaded. After \
8686
running autodiff selection detected `$(adₙ)` as a potential forward mode \
87-
backend.", nonlinear_verbosity[], :ad_backend_incompatible, :error_control)
87+
backend.", nonlinear_verbose[], :ad_backend_incompatible, :error_control)
8888
return adₙ
8989
end
9090
return ad

lib/NonlinearSolveBase/src/jacobian.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ function construct_concrete_adtype(f::NonlinearFunction, ad::AbstractADType)
181181
if f.jac_prototype === nothing
182182
if SciMLBase.has_colorvec(f)
183183
@SciMLMessage("`colorvec` is provided but `sparsity` and `jac_prototype` is not \
184-
specified. `colorvec` will be ignored.", nonlinear_verbosity[], :colorvec_no_prototype, :performance )
184+
specified. `colorvec` will be ignored.", nonlinear_verbose[], :colorvec_no_prototype, :performance )
185185
end
186186
return ad # No sparse AD
187187
else
188188
if !sparse_or_structured_prototype(f.jac_prototype)
189189
if SciMLBase.has_colorvec(f)
190190
@SciMLMessage("`colorvec` is provided but `jac_prototype` is not a sparse \
191-
or structured matrix. `colorvec` will be ignored.", nonlinear_verbosity[], :colorvec_non_sparse, :performance)
191+
or structured matrix. `colorvec` will be ignored.", nonlinear_verbose[], :colorvec_non_sparse, :performance)
192192
end
193193
return ad
194194
end
@@ -256,7 +256,7 @@ function select_fastest_coloring_algorithm(
256256
prototype, f::NonlinearFunction, ad::AbstractADType)
257257
if !Utils.is_extension_loaded(Val(:SparseMatrixColorings))
258258
@SciMLMessage("`SparseMatrixColorings` must be explicitly imported for sparse automatic \
259-
differentiation to work. Proceeding with Dense Automatic Differentiation.", :sparse_matrix_colorings_not_loaded, :performance)
259+
differentiation to work. Proceeding with Dense Automatic Differentiation.", nonlinear_verbose[], :sparse_matrix_colorings_not_loaded, :performance)
260260
return nothing
261261
end
262262
return select_fastest_coloring_algorithm(Val(:SparseMatrixColorings), prototype, f, ad)

lib/NonlinearSolveBase/src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function SciMLBase.__solve(
77
linsolve_kwargs, (; verbose = verbose.linear_verbosity))
88
end
99

10-
@with non_linear_verbose => verbose begin
10+
@with nonlinear_verbose => verbose begin
1111
cache = SciMLBase.__init(prob, alg, args...; linsolve_kwargs, kwargs...)
1212
sol = CommonSolve.solve!(cache)
1313
end

0 commit comments

Comments
 (0)