Skip to content

Commit

Permalink
get rid of extra complete calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 9, 2024
1 parent 73054c4 commit dffe0fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/mtkparameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ function level1()
eqs = [D(x) ~ p1 * x - p2 * x * y
D(y) ~ -p3 * y + p4 * x * y]

sys = structural_simplify(complete(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4])))
sys = structural_simplify(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4]))
prob = ODEProblem{true, SciMLBase.FullSpecialize}(sys)
end

Expand All @@ -158,8 +158,8 @@ function level2()
eqs = [D(x) ~ p1 * x - p23[1] * x * y
D(y) ~ -p23[2] * y + p4 * x * y]

sys = structural_simplify(complete(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4])))
sys = structural_simplify(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4]))
prob = ODEProblem{true, SciMLBase.FullSpecialize}(sys)
end

Expand All @@ -172,8 +172,8 @@ function level3()
eqs = [D(x) ~ p1 * x - p23[1] * x * y
D(y) ~ -p23[2] * y + p4 * x * y]

sys = structural_simplify(complete(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4])))
sys = structural_simplify(ODESystem(
eqs, t, tspan = (0, 3.0), name = :sys, parameter_dependencies = [y0 => 2p4]))
prob = ODEProblem{true, SciMLBase.FullSpecialize}(sys)
end

Expand Down

0 comments on commit dffe0fc

Please sign in to comment.