From 6e7c6a0a977b85af11dd38a63d90855d45589c31 Mon Sep 17 00:00:00 2001 From: Herman Sletmoen Date: Tue, 6 Aug 2024 16:57:00 +0200 Subject: [PATCH] Fix README example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f76e2b0c2..d93a18e3f7 100644 --- a/README.md +++ b/README.md @@ -83,13 +83,13 @@ eqs = [D(x) ~ σ * (y - x), D(y) ~ x * (ρ - z) - y, D(z) ~ x * y - β * z] -@mtkbuild lorenz1 = ODESystem(eqs) -@mtkbuild lorenz2 = ODESystem(eqs) +@named lorenz1 = ODESystem(eqs, t) +@named lorenz2 = ODESystem(eqs, t) @variables a(t) @parameters γ connections = [0 ~ lorenz1.x + lorenz2.y + a * γ] -@mtkbuild connected = ODESystem(connections, t, [a], [γ], systems = [lorenz1, lorenz2]) +@mtkbuild connected = ODESystem(connections, t, systems = [lorenz1, lorenz2]) u0 = [lorenz1.x => 1.0, lorenz1.y => 0.0,