Skip to content

Commit 3e3a6b8

Browse files
committed
Fix deprecated ODESystem and @mtkbuild usage in README examples
- Replace ODESystem with System (new unified constructor) - Replace @mtkbuild with @mtkcompile - Addresses deprecation warnings for better user onboarding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 418c34a commit 3e3a6b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ eqs = [D(D(x)) ~ σ * (y - x),
4646
D(y) ~ x *- z) - y,
4747
D(z) ~ x * y - β * z]
4848

49-
@mtkbuild sys = ODESystem(eqs, t)
49+
@mtkcompile sys = System(eqs, t)
5050

5151
u0 = [D(x) => 2.0,
5252
x => 1.0,
@@ -83,13 +83,13 @@ eqs = [D(x) ~ σ * (y - x),
8383
D(y) ~ x *- z) - y,
8484
D(z) ~ x * y - β * z]
8585

86-
@named lorenz1 = ODESystem(eqs, t)
87-
@named lorenz2 = ODESystem(eqs, t)
86+
@named lorenz1 = System(eqs, t)
87+
@named lorenz2 = System(eqs, t)
8888

8989
@variables a(t)
9090
@parameters γ
9191
connections = [0 ~ lorenz1.x + lorenz2.y + a * γ]
92-
@mtkbuild connected = ODESystem(connections, t, systems = [lorenz1, lorenz2])
92+
@mtkcompile connected = System(connections, t, systems = [lorenz1, lorenz2])
9393

9494
u0 = [lorenz1.x => 1.0,
9595
lorenz1.y => 0.0,

0 commit comments

Comments
 (0)