Skip to content

Commit 4b138e8

Browse files
Update test/initializationsystem.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 90b9000 commit 4b138e8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/initializationsystem.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,13 @@ end
512512
# https://github.com/SciML/ModelingToolkit.jl/issues/3029
513513
@testset "Derivatives in Initialization Equations" begin
514514
@variables x(t)
515-
sys = ODESystem([D(D(x)) ~ 0], t; initialization_eqs = [x ~ 0, D(x) ~ 1], name = :sys) |> structural_simplify
516-
@test_nowarn ODEProblem(sys, [], (0.0, 1.0), []);
517-
518-
sys = ODESystem([D(D(x)) ~ 0], t; initialization_eqs = [x ~ 0, D(D(x)) ~ 0], name = :sys) |> structural_simplify
519-
@test_nowarn ODEProblem(sys, [D(x) => 1.0], (0.0, 1.0), []);
515+
sys = ODESystem(
516+
[D(D(x)) ~ 0], t; initialization_eqs = [x ~ 0, D(x) ~ 1], name = :sys) |>
517+
structural_simplify
518+
@test_nowarn ODEProblem(sys, [], (0.0, 1.0), [])
519+
520+
sys = ODESystem(
521+
[D(D(x)) ~ 0], t; initialization_eqs = [x ~ 0, D(D(x)) ~ 0], name = :sys) |>
522+
structural_simplify
523+
@test_nowarn ODEProblem(sys, [D(x) => 1.0], (0.0, 1.0), [])
520524
end

0 commit comments

Comments
 (0)