From f7f0630797ac97b50527cf6ae14fb71c0e703c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20St-Jean?= Date: Mon, 14 Apr 2025 15:20:24 +0900 Subject: [PATCH 1/2] Connect the clock in causal direction --- docs/src/tutorials/input_component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorials/input_component.md b/docs/src/tutorials/input_component.md index 5d2843663..309a4ee7f 100644 --- a/docs/src/tutorials/input_component.md +++ b/docs/src/tutorials/input_component.md @@ -51,7 +51,7 @@ function MassSpringDamperSystem(data, time; name) @named clk = ContinuousClock() @named model = MassSpringDamper() - eqs = [connect(src.input, clk.output) + eqs = [connect(clk.output, src.input) connect(src.output, model.input)] ODESystem(eqs, t, [], []; name, systems = [src, clk, model]) From 648b93100bc42c0a700fee77b049e1d5974006f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20St-Jean?= Date: Mon, 14 Apr 2025 16:35:52 +0900 Subject: [PATCH 2/2] Fix the other connect to be causal --- docs/src/tutorials/input_component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorials/input_component.md b/docs/src/tutorials/input_component.md index 309a4ee7f..292a8aa7a 100644 --- a/docs/src/tutorials/input_component.md +++ b/docs/src/tutorials/input_component.md @@ -114,7 +114,7 @@ function MassSpringDamperSystem(data, time; name) @named model = MassSpringDamper() eqs = [connect(model.input, src.output) - connect(src.input, clk.output)] + connect(clk.output, src.input)] ODESystem(eqs, t; name, systems = [src, clk, model]) end