Skip to content

Commit e73e4bb

Browse files
Merge pull request #1099 from AayushSabharwal/as/fix-test
test: fix jump affects in MTK remake test
2 parents e0efaa1 + 69003bb commit e73e4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/downstream/modelingtoolkit_remake.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ push!(syss, nsys)
5050
push!(probs, NonlinearProblem(nsys, [u0; p], jac = true))
5151

5252
rate₁ = β * x * y
53-
affect₁ = [x ~ x - σ, y ~ y + σ]
53+
affect₁ = [x ~ Pre(x) - σ, y ~ Pre(y) + σ]
5454
rate₂ = ρ * y
55-
affect₂ = [y ~ y - 1, z ~ z + 1]
55+
affect₂ = [y ~ Pre(y) - 1, z ~ Pre(z) + 1]
5656
j₁ = ConstantRateJump(rate₁, affect₁)
5757
j₂ = ConstantRateJump(rate₂, affect₂)
5858
j₃ = MassActionJump(2 * β + ρ, [z => 1], [x => 1, z => -1])

0 commit comments

Comments
 (0)