From 0a5e61bf33439fb3182f8882d398ebeaff05404d Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 22 Jul 2018 17:52:30 -0700 Subject: [PATCH] fix DynamicSS --- src/solve.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/solve.jl b/src/solve.jl index 832a918..c3b57e5 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -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