Skip to content

Commit 8f66928

Browse files
committed
revert changes to some DAEs
1 parent 4f30b7b commit 8f66928

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/dsl/dsl_options.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ let
823823
@equations 2X ~ $c - X
824824
end)
825825

826-
u0 = []
826+
u0 = [rn.X => 0.0]
827827
ps = []
828828
oprob = ODEProblem(rn, u0, (0.0, 100.0), ps; structural_simplify=true)
829829
sol = solve(oprob, Tsit5(); abstol=1e-9, reltol=1e-9)
@@ -851,7 +851,7 @@ let
851851

852852
rn = complete(compose(base_rn, [internal_rn]))
853853

854-
u0 = [X => 3.0, internal_rn.X => 4.0]
854+
u0 = [V1 => 1.0, X => 3.0, internal_rn.V2 => 2.0, internal_rn.X => 4.0]
855855
ps = [p => 1.0, d => 0.2, internal_rn.p => 2.0, internal_rn.d => 0.5]
856856
oprob = ODEProblem(rn, u0, (0.0, 1000.0), ps; structural_simplify=true)
857857
sol = solve(oprob, Rosenbrock23(); abstol=1e-9, reltol=1e-9)
@@ -895,7 +895,7 @@ let
895895
@test equations(rn)[3] isa Equation
896896

897897
# Checks that simulations has the correct output
898-
u0 = Dict([S => 1 + rand(rng), Y => 1 + rand(rng)])
898+
u0 = Dict([S => 1 + rand(rng), X => 1 + rand(rng), Y => 1 + rand(rng)])
899899
ps = Dict([p => 1 + rand(rng), d => 1 + rand(rng), k => 1 + rand(rng)])
900900
oprob = ODEProblem(rn, u0, (0.0, 10000.0), ps; structural_simplify=true)
901901
sol = solve(oprob, Tsit5(); abstol=1e-9, reltol=1e-9)
@@ -1025,4 +1025,3 @@ let
10251025
@parameters v n
10261026
@test isequal(Catalyst.expand_registered_functions(equations(rn4)[1]), D(A) ~ v*(A^n))
10271027
end
1028-

0 commit comments

Comments
 (0)