Skip to content

Commit e952539

Browse files
committed
remove println
1 parent a2d62ab commit e952539

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
1515
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1616
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1717
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
18+
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
1819
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
1920
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2021
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

src/ModelingToolkit.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import GeneralizedGenerated
1313
using DocStringExtensions
1414
using Base: RefValue
1515

16+
using RecursiveArrayTools
17+
1618
import SymbolicUtils
1719
import SymbolicUtils: to_symbolic, FnType
1820

src/systems/jumps/jumpsystem.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function assemble_crj(js, crj, statetoid)
4343
end
4444

4545
function assemble_maj(js, maj::MassActionJump{U,Vector{Pair{V,W}},Vector{Pair{V2,W2}}},
46-
statetoid, ptoid, parammap) where {U,V,W,V2,W2}
46+
statetoid, parammap) where {U,V,W,V2,W2}
4747
sr = maj.scaled_rates
4848
if sr isa Operation
4949
pval = substitute(sr,parammap)
@@ -52,7 +52,7 @@ function assemble_maj(js, maj::MassActionJump{U,Vector{Pair{V,W}},Vector{Pair{V2
5252
else
5353
pval = maj.scaled_rates
5454
end
55-
55+
5656
rs = Vector{Pair{Int,W}}()
5757
for (spec,stoich) in maj.reactant_stoch
5858
if iszero(spec)
@@ -109,6 +109,7 @@ function DiffEqJump.JumpProblem(js::JumpSystem, prob, aggregator; kwargs...)
109109
elseif j isa VariableRateJump
110110
push!(vrjs, assemble_vrj(js, j, statetoid))
111111
elseif j isa MassActionJump
112+
println("here")
112113
push!(majs, assemble_maj(js, j, statetoid, parammap))
113114
else
114115
error("JumpSystems should only contain Constant, Variable or Mass Action Jumps.")

test/jumpsystem.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ m2 = getmean(jprob,Nsims)
107107
# test JumpSystem solution agrees with direct version
108108
@test abs(m-m2)/m < .01
109109

110-
111110
# mass action jump tests for SIR model
112111
maj1 = MassActionJump(2*β/2, [S => 1, I => 1], [S => -1, I => 1])
113112
maj2 = MassActionJump(γ, [I => 1], [I => -1, R => 1])

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using SafeTestsets, Test
1212
@safetestset "NonlinearSystem Test" begin include("nonlinearsystem.jl") end
1313
@safetestset "OptimizationSystem Test" begin include("optimizationsystem.jl") end
1414
@safetestset "ReactionSystem Test" begin include("reactionsystem.jl") end
15+
@safetestset "JumpSystem Test" begin include("jumpsystem.jl") end
1516
@safetestset "Build Targets Test" begin include("build_targets.jl") end
1617
@safetestset "Domain Test" begin include("domains.jl") end
1718
@safetestset "Constraints Test" begin include("constraints.jl") end

0 commit comments

Comments
 (0)