Skip to content

Commit 4af6b98

Browse files
Merge pull request #381 from cstjean/patch-1
DOCS: Connect the clock in causal direction
2 parents 9758187 + 648b931 commit 4af6b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/input_component.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function MassSpringDamperSystem(data, time; name)
5151
@named clk = ContinuousClock()
5252
@named model = MassSpringDamper()
5353
54-
eqs = [connect(src.input, clk.output)
54+
eqs = [connect(clk.output, src.input)
5555
connect(src.output, model.input)]
5656
5757
ODESystem(eqs, t, [], []; name, systems = [src, clk, model])
@@ -114,7 +114,7 @@ function MassSpringDamperSystem(data, time; name)
114114
@named model = MassSpringDamper()
115115
116116
eqs = [connect(model.input, src.output)
117-
connect(src.input, clk.output)]
117+
connect(clk.output, src.input)]
118118
119119
ODESystem(eqs, t; name, systems = [src, clk, model])
120120
end

0 commit comments

Comments
 (0)