File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -206,14 +206,17 @@ function get_concrete_algorithm(alg, prob)
206
206
return __get_concrete_algorithm (alg, prob)
207
207
end
208
208
209
+ struct NonlinearSolveTag end
210
+
209
211
function __get_concrete_algorithm (alg, prob)
210
212
@unpack sparsity, jac_prototype = prob. f
211
213
use_sparse_ad = sparsity != = nothing || jac_prototype != = nothing
212
214
ad = if eltype (prob. u0) <: Complex
213
215
# Use Finite Differencing
214
216
use_sparse_ad ? AutoSparseFiniteDiff () : AutoFiniteDiff ()
215
217
else
216
- use_sparse_ad ? AutoSparseForwardDiff () : AutoForwardDiff {nothing, Nothing} (nothing )
218
+ tag = NonlinearSolveTag ()
219
+ use_sparse_ad ? AutoSparseForwardDiff (; tag) : AutoForwardDiff (; tag)
217
220
end
218
221
return set_ad (alg, ad)
219
222
end
You can’t perform that action at this time.
0 commit comments