Skip to content

Commit

Permalink
other nameof
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Nov 11, 2024
1 parent 6ded32e commit d0cd0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mutable struct DAEResidualJacobianWrapper{isAD, F, pType, duType, uType, alphaTy
uprev::uprevType
t::tType
function DAEResidualJacobianWrapper(alg, f, p, α, invγdt, tmp, uprev, t)
isautodiff = nameof(alg_autodiff(alg)) == :AutoForwardDiff
isautodiff = alg_autodiff(alg) isa AutoForwardDiff
if isautodiff
tmp_du = PreallocationTools.dualcache(uprev)
tmp_u = PreallocationTools.dualcache(uprev)
Expand Down

0 comments on commit d0cd0ff

Please sign in to comment.