Skip to content

Commit 48d0f7a

Browse files
fix: fix jacobian building for systems
1 parent 80ff4a7 commit 48d0f7a

File tree

1 file changed

+3
-3
lines changed
  • lib/NonlinearSolveHomotopyContinuation/src

1 file changed

+3
-3
lines changed

lib/NonlinearSolveHomotopyContinuation/src/solve.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ function homotopy_continuation_preprocessing(prob::NonlinearProblem, alg::Homoto
1717
prep = nothing
1818
elseif iip
1919
# prepare a DI jacobian if not
20-
prep = DI.prepare_jacobian(f, copy(state_values(prob)), alg.autodiff, u0, DI.Constant(p))
20+
prep = DI.prepare_jacobian(prob.f.f, copy(state_values(prob)), alg.autodiff, u0, DI.Constant(p))
2121
elseif isscalar
22-
prep = DI.prepare_derivative(f, alg.autodiff, u0, DI.Constant(p))
22+
prep = DI.prepare_derivative(prob.f.f, alg.autodiff, u0, DI.Constant(p))
2323
else
24-
prep = DI.prepare_jacobian(f, alg.autodiff, u0, DI.Constant(p))
24+
prep = DI.prepare_jacobian(prob.f.f, alg.autodiff, u0, DI.Constant(p))
2525
end
2626

2727
# variables for HC to use

0 commit comments

Comments
 (0)