Skip to content

Commit a8908ba

Browse files
committed
Format
1 parent 9caed82 commit a8908ba

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/input_output_handling.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ t = ModelingToolkitStandardLibrary.Mechanical.Rotational.t
116116
@named spring = Spring(; c = 10)
117117
@named damper = Damper(; d = 3)
118118
@named torque = Torque()
119-
eqs = [
120-
connect(torque.flange, inertia1.flange_a)
119+
eqs = [connect(torque.flange, inertia1.flange_a)
121120
connect(inertia1.flange_b, spring.flange_a, damper.flange_a)
122-
connect(inertia2.flange_a, spring.flange_b, damper.flange_b)
123-
]
124-
model = ODESystem(eqs, t; systems = [torque, inertia1, inertia2, spring, damper], name=:name)
121+
connect(inertia2.flange_a, spring.flange_b, damper.flange_b)]
122+
model = ODESystem(eqs, t; systems = [torque, inertia1, inertia2, spring, damper],
123+
name = :name)
125124
model_outputs = [inertia1.w, inertia2.w, inertia1.phi, inertia2.phi]
126125
model_inputs = [torque.tau.u]
127126
matrices, ssys = linearize(model, model_inputs, model_outputs)

0 commit comments

Comments
 (0)