From d6167c94d6145489182c2affbc1426b74eb32975 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Fri, 4 Oct 2024 13:19:37 -0400 Subject: [PATCH] fix: ordering in jacobian call --- lib/SimpleNonlinearSolve/src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleNonlinearSolve/src/utils.jl b/lib/SimpleNonlinearSolve/src/utils.jl index 012fc277a..2a36ec60f 100644 --- a/lib/SimpleNonlinearSolve/src/utils.jl +++ b/lib/SimpleNonlinearSolve/src/utils.jl @@ -193,7 +193,7 @@ function compute_jacobian!!(J, prob, autodiff, fx, x, extras) end end if SciMLBase.isinplace(prob) - DI.jacobian!(prob.f, J, fx, extras, autodiff, x, Constant(prob.p)) + DI.jacobian!(prob.f, fx, J, extras, autodiff, x, Constant(prob.p)) else DI.jacobian!(prob.f, J, extras, autodiff, x, Constant(prob.p)) end