Skip to content

Commit a426724

Browse files
committed
format
1 parent 3635650 commit a426724

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/Mechanical/rotational.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,20 @@ D = Differential(t)
3737
@test all(sol[inertia1.w] .== 0)
3838
@test sol[inertia2.w][end]0 atol=1e-3 # all energy has dissipated
3939

40-
4140
@named springdamper = SpringDamper(; c = 1e4, d = 10)
4241
connections = [connect(fixed.flange, inertia1.flange_b)
43-
connect(inertia1.flange_b, springdamper.flange_a)
44-
connect(springdamper.flange_b, inertia2.flange_a)]
42+
connect(inertia1.flange_b, springdamper.flange_a)
43+
connect(springdamper.flange_b, inertia2.flange_a)]
4544

4645
@named model = ODESystem(connections, t,
47-
systems = [fixed, inertia1, inertia2, springdamper])
46+
systems = [fixed, inertia1, inertia2, springdamper])
4847
sys = structural_simplify(model)
4948

5049
prob = ODEProblem(sys, Pair[], (0, 10.0))
5150
sol2 = solve(prob, Rodas4())
5251
@test SciMLBase.successful_retcode(sol)
5352

54-
@test sol2(0:1:10, idxs=inertia2.w).u sol1(0:1:10, idxs=inertia2.w).u atol=1e-3
55-
53+
@test sol2(0:1:10, idxs = inertia2.w).usol1(0:1:10, idxs = inertia2.w).u atol=1e-3
5654

5755
# Plots.plot(sol; vars=[inertia1.w, inertia2.w])
5856
end

0 commit comments

Comments
 (0)