1
1
# Here we determine the preferred AD backend. We have a predefined list of ADs and then
2
- # we select the first one that is avialable and would work with the problem.
2
+ # we select the first one that is available and would work with the problem.
3
3
4
4
# Ordering is important here. We want to select the first one that is compatible with the
5
5
# problem.
@@ -29,7 +29,7 @@ function select_forward_mode_autodiff(
29
29
if incompatible_backend_and_problem (prob, ad)
30
30
adₙ = select_forward_mode_autodiff (prob, nothing ; warn_check_mode)
31
31
@warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
32
- could be because the backend package for the choosen AD isn't loaded. After \
32
+ could be because the backend package for the chosen AD isn't loaded. After \
33
33
running autodiff selection detected `$(adₙ) ` as a potential forward mode \
34
34
backend."
35
35
return adₙ
@@ -59,7 +59,7 @@ function select_reverse_mode_autodiff(
59
59
if incompatible_backend_and_problem (prob, ad)
60
60
adₙ = select_reverse_mode_autodiff (prob, nothing ; warn_check_mode)
61
61
@warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
62
- could be because the backend package for the choosen AD isn't loaded. After \
62
+ could be because the backend package for the chosen AD isn't loaded. After \
63
63
running autodiff selection detected `$(adₙ) ` as a potential reverse mode \
64
64
backend."
65
65
return adₙ
@@ -80,7 +80,7 @@ function select_jacobian_autodiff(prob::AbstractNonlinearProblem, ad::AbstractAD
80
80
if incompatible_backend_and_problem (prob, ad)
81
81
adₙ = select_jacobian_autodiff (prob, nothing )
82
82
@warn " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
83
- could be because the backend package for the choosen AD isn't loaded. After \
83
+ could be because the backend package for the chosen AD isn't loaded. After \
84
84
running autodiff selection detected `$(adₙ) ` as a potential jacobian \
85
85
backend."
86
86
return adₙ
0 commit comments