From c1a0c508e49e8d44cec637639c5773bcb9ac7efb Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 15 Nov 2024 08:46:35 -0100 Subject: [PATCH] Update lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl Co-authored-by: Aayush Sabharwal --- lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl b/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl index 248a516a0..82c0d6137 100644 --- a/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl +++ b/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl @@ -11,7 +11,7 @@ function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...) lasti = 1 for i in 1:numscc - prob.explictfuns![i](prob.probs[i].p[1],sols) + prob.explictfuns![i](parameter_values(prob.probs[i])[1],sols) sol = SciMLBase.solve(prob.probs[i], alg; kwargs...) _sol = SciMLBase.build_solution(prob.probs[i], nothing, sol.u, sol.resid, retcode = sol.retcode) sols[i] = _sol