Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 10, 2024
1 parent 525f0fe commit 59459bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function Base.convert(::Type{AbstractMatrix}, W::WOperator{IIP}) where {IIP}
else
# Non-allocating already updated
#_W = W._concrete_form
#jacobian2W!(_W, W.mass_matrix, W.gamma, W.J, W.transform)
#jacobian2W!(_W, W.mass_matrix, W.gamma, convert(AbstractMatrix, W.J), W.transform)
end
return W._concrete_form
end
Expand Down Expand Up @@ -455,7 +455,11 @@ function do_newJW(integrator, alg, nlsolver, repeat_step)::NTuple{2, Bool}
integrator.iter <= 1 && return true, true # at least one JW eval at the start
repeat_step && return false, false
islin, _ = islinearfunction(integrator)
islin && return false, false # no further JW eval when it's linear
if islin
# no further J eval when it's linear
# W eval needed if not adaptive
return false, !integrator.opts.adaptive
end
!integrator.opts.adaptive && return true, true # Not adaptive will always refactorize
errorfail = integrator.EEst > one(integrator.EEst)
if alg isa DAEAlgorithm
Expand Down

0 comments on commit 59459bf

Please sign in to comment.