Skip to content

Commit e516426

Browse files
fixup! fix: skip inplace check in BifurcationKit
1 parent 29a33a5 commit e516426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/MTKBifurcationKitExt.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ function BifurcationKit.BifurcationProblem(nsys::NonlinearSystem,
9797
@set! nsys.index_cache = nothing # force usage of a parameter vector instead of `MTKParameters`
9898
# Creates F and J functions.
9999
ofun = NonlinearFunction(nsys; jac = jac)
100-
F = ofun.f
100+
F = let f = ofun.f
101+
_f(resid, u, p) = (f(resid, u, p); resid)
102+
_f(u, p) = f(u, p)
103+
end
101104
J = jac ? ofun.jac : nothing
102105

103106
# Converts the input state guess.

0 commit comments

Comments
 (0)