We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952957f commit 2d09816Copy full SHA for 2d09816
src/common.jl
@@ -223,7 +223,7 @@ function SciMLBase.reinit!(cache::LinearCache;
223
224
225
isfresh = !isnothing(A)
226
- precsisfresh = reuse_precs || isfresh || !isnothing(p)
+ precsisfresh = !reuse_precs && (isfresh || !isnothing(p))
227
isfresh |= cache.isfresh
228
precsisfresh |= cache.precsisfresh
229
@@ -246,7 +246,7 @@ function SciMLBase.reinit!(cache::LinearCache;
246
cache.Pl = Pl
247
cache.Pr = Pr
248
cache.isfresh = true
249
- cache.isfresh = true
+ cache.precsisfresh = precsisfresh
250
end
251
252
0 commit comments