Skip to content

Commit 091913f

Browse files
format the test
1 parent 75e1641 commit 091913f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test/structural_transformation/index_reduction.jl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,14 @@ let
160160
@parameters g
161161
@variables x(t) [state_priority = 10] y(t) λ(t)
162162

163-
eqs = [
164-
D(D(x)) ~ λ * x
165-
D(D(y)) ~ λ * y - g
166-
x^2 + y^2 ~ 1
167-
]
168-
@named pend = ODESystem(eqs,t)
163+
eqs = [D(D(x)) ~ λ * x
164+
D(D(y)) ~ λ * y - g
165+
x^2 + y^2 ~ 1]
166+
@named pend = ODESystem(eqs, t)
169167
sys = complete(structural_simplify(pend; dummy_derivative = false))
170-
prob = ODEProblem(sys, [x => 1, y => 0, D(x) => 0.0], (0.0, 10.0), [g => 1], guesses ==> 0.0])
171-
sol = solve(prob,Rodas5P())
168+
prob = ODEProblem(
169+
sys, [x => 1, y => 0, D(x) => 0.0], (0.0, 10.0), [g => 1], guesses ==> 0.0])
170+
sol = solve(prob, Rodas5P())
172171
@test SciMLBase.successful_retcode(sol)
173172
@test sol[x^2 + y^2][end] < 1.1
174-
end
173+
end

0 commit comments

Comments
 (0)