Skip to content

Commit f8a09ad

Browse files
committed
SteadyStateSolution has no field t error
1 parent 4066407 commit f8a09ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/solve.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ function _concrete_solve(prob::DiffEqBase.DEProblem,alg::DiffEqBase.DEAlgorithm,
210210
RecursiveArrayTools.DiffEqArray(sol.u,sol.t)
211211
end
212212

213+
function _concrete_solve(prob::DiffEqBase.SteadyStateProblem,alg::DiffEqBase.DEAlgorithm,
214+
u0=prob.u0,p=prob.p,args...;kwargs...)
215+
sol = solve(remake(prob,u0=u0,p=p),alg,args...;kwargs...)
216+
RecursiveArrayTools.VectorOfArray(sol.u)
217+
end
218+
213219
function ChainRulesCore.frule(::typeof(concrete_solve),prob,alg,u0,p,args...;
214220
sensealg=nothing,kwargs...)
215221
_concrete_solve_forward(prob,alg,sensealg,u0,p,args...;kwargs...)

0 commit comments

Comments
 (0)