@@ -24,18 +24,16 @@ function select_forward_mode_autodiff(
24
24
! (ADTypes. mode (ad) isa ADTypes. ForwardOrReverseMode) &&
25
25
! is_finite_differences_backend (ad)
26
26
27
- @SciMLMessage (" The chosen AD backend $(ad) is not a forward mode AD. Use with caution." ,
28
- nonlinear_verbose[], :fd_ad_caution , :error_control )
27
+ @warn " The chosen AD backend $(ad) is not a forward mode AD. Use with caution."
29
28
30
29
end
31
30
if incompatible_backend_and_problem (prob, ad)
32
31
adₙ = select_forward_mode_autodiff (prob, nothing ; warn_check_mode)
33
32
34
- @SciMLMessage ( " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
33
+ @warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
35
34
could be because the backend package for the chosen AD isn't loaded. After \
36
35
running autodiff selection detected `$(adₙ) ` as a potential forward mode \
37
- backend." , nonlinear_verbose[], :ad_backend_incompatible , :error_control )
38
-
36
+ backend."
39
37
return adₙ
40
38
end
41
39
return ad
@@ -55,15 +53,14 @@ function select_reverse_mode_autodiff(
55
53
if warn_check_mode && ! (ADTypes. mode (ad) isa ADTypes. ReverseMode) &&
56
54
! (ADTypes. mode (ad) isa ADTypes. ForwardOrReverseMode) &&
57
55
! is_finite_differences_backend (ad)
58
- @SciMLMessage (" The chosen AD backend $(ad) is not a forward mode AD. Use with caution." ,
59
- nonlinear_verbose[], :fd_ad_caution , :error_control )
56
+ @warn " The chosen AD backend $(ad) is not a forward mode AD. Use with caution."
60
57
end
61
58
if incompatible_backend_and_problem (prob, ad)
62
59
adₙ = select_reverse_mode_autodiff (prob, nothing ; warn_check_mode)
63
- @SciMLMessage ( " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
60
+ @warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
64
61
could be because the backend package for the chosen AD isn't loaded. After \
65
62
running autodiff selection detected `$(adₙ) ` as a potential forward mode \
66
- backend." , nonlinear_verbose[], :ad_backend_incompatible , :error_control )
63
+ backend."
67
64
return adₙ
68
65
end
69
66
return ad
81
78
function select_jacobian_autodiff (prob:: AbstractNonlinearProblem , ad:: AbstractADType )
82
79
if incompatible_backend_and_problem (prob, ad)
83
80
adₙ = select_jacobian_autodiff (prob, nothing )
84
- @SciMLMessage ( " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
81
+ @warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
85
82
could be because the backend package for the chosen AD isn't loaded. After \
86
83
running autodiff selection detected `$(adₙ) ` as a potential forward mode \
87
- backend." , nonlinear_verbose[], :ad_backend_incompatible , :error_control )
84
+ backend."
88
85
return adₙ
89
86
end
90
87
return ad
0 commit comments