Skip to content

Commit 73b0a63

Browse files
Merge pull request #958 from AayushSabharwal/as/steadystate-remake
fix: fix tests
2 parents 11f2b76 + 8bfe059 commit 73b0a63

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/problems/problem_utils.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,3 @@ Base.copy(p::SciMLBase.NullParameters) = p
194194

195195
SymbolicIndexingInterface.is_time_dependent(::AbstractDEProblem) = true
196196
SymbolicIndexingInterface.is_time_dependent(::AbstractNonlinearProblem) = false
197-
SymbolicIndexingInterface.is_time_dependent(::AbstractSteadyStateProblem) = true

src/problems/steady_state_problems.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ function SteadyStateProblem(prob::AbstractODEProblem)
133133
SteadyStateProblem{isinplace(prob)}(prob.f, prob.u0, prob.p; prob.kwargs...)
134134
end
135135

136+
SymbolicIndexingInterface.is_time_dependent(::SteadyStateProblem) = true
137+
136138
@doc doc"""
137139
138140
Holds information on what variables to alias

test/remake_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function SciMLBase.late_binding_update_u0_p(
9292
return newu0, ones(3)
9393
end
9494

95-
for prob in deepcopy(probs)
95+
@testset "$(SciMLBase.parameterless_type(prob)) - $(typeof(prob.p))" for prob in deepcopy(probs)
9696
prob2 = @inferred remake(prob)
9797
@test prob2.u0 == u0
9898
@test prob2.p == typeof(prob.p)(p)

0 commit comments

Comments
 (0)