Skip to content

Commit

Permalink
fix DynamicSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 23, 2018
1 parent 65b6aef commit 0a5e61b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ end
function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem,
alg::DynamicSS,args...;kwargs...)

_prob = remake(prob;tspan=(0.0,Inf))

_prob = ODEProblem(ODEFunction{DiffEqBase.isinplace(prob)}(prob.f),
prob.u0,(0.0,Inf),prob.p,
prob.mass_matrix)
solve(_prob,alg.alg,args...;kwargs...,
callback=TerminateSteadyState(alg.abstol,alg.reltol))
end

0 comments on commit 0a5e61b

Please sign in to comment.