Skip to content

Commit 52b5068

Browse files
committed
Added explicit time-dependence to failing test cases.
1 parent 7b5dd0f commit 52b5068

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/lowering_solving.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ eqs = [D(x) ~ σ*(y-x),
4848
lorenz1 = ODESystem(eqs,name=:lorenz1)
4949
lorenz2 = ODESystem(eqs,name=:lorenz2)
5050

51-
@variables α
51+
@variables α(t)
5252
@parameters γ
5353
connections = [0 ~ lorenz1.x + lorenz2.y + α*γ]
5454
connected = ODESystem(connections,t,[α],[γ],systems=[lorenz1,lorenz2])

test/reactionsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ end
189189

190190
# test for https://github.com/SciML/ModelingToolkit.jl/issues/436
191191
@parameters t
192-
@variables S I
192+
@variables S(t) I(t)
193193
rxs = [Reaction(1,[S],[I]), Reaction(1.1,[S],[I])]
194194
rs = ReactionSystem(rxs, t, [S,I], [])
195195
js = convert(JumpSystem, rs)
@@ -202,7 +202,7 @@ jprob = JumpProblem(rs, dprob, Direct(), save_positions=(false,false))
202202

203203

204204
@parameters k1 k2
205-
@variables R
205+
@variables R(t)
206206
rxs = [Reaction(k1*S, [S,I], [I], [2,3], [2]),
207207
Reaction(k2*R, [I], [R]) ]
208208
rs = ReactionSystem(rxs, t, [S,I,R], [k1,k2])

0 commit comments

Comments
 (0)