Skip to content

Commit

Permalink
Merge pull request #33 from avik-pal/patch-1
Browse files Browse the repository at this point in the history
Fix SSrootfind
  • Loading branch information
ChrisRackauckas authored Sep 24, 2021
2 parents 58387c0 + 07fef70 commit 0036db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem,
# f = (u) -> (f!(du,u); du) # out-of-place version

if typeof(alg) <: SSRootfind
u = alg.nlsolve(f!,u0,abstol)
u = reshape(alg.nlsolve(f!,u0,abstol), sizeu)
resid = similar(u)
f!(resid,u)
DiffEqBase.build_solution(prob,alg,u,resid;retcode = :Success)
Expand Down

0 comments on commit 0036db6

Please sign in to comment.