diff --git a/lib/NonlinearSolveBase/src/autodiff.jl b/lib/NonlinearSolveBase/src/autodiff.jl index 7c6bee2304..535b428ffd 100644 --- a/lib/NonlinearSolveBase/src/autodiff.jl +++ b/lib/NonlinearSolveBase/src/autodiff.jl @@ -58,13 +58,13 @@ function select_reverse_mode_autodiff( if warn_check_mode && !(ADTypes.mode(ad) isa ADTypes.ReverseMode) && !(ADTypes.mode(ad) isa ADTypes.ForwardOrReverseMode) && !is_finite_differences_backend(ad) - @warn "The chosen AD backend $(ad) is not a forward mode AD. Use with caution." + @warn "The chosen AD backend $(ad) is not a reverse mode AD. Use with caution." end if incompatible_backend_and_problem(prob, ad) adₙ = select_reverse_mode_autodiff(prob, nothing; warn_check_mode) @warn "The chosen AD backend `$(ad)` does not support the chosen problem. This \ could be because the backend package for the chosen AD isn't loaded. After \ - running autodiff selection detected `$(adₙ)` as a potential forward mode \ + running autodiff selection detected `$(adₙ)` as a potential reverse mode \ backend." return adₙ end