Skip to content

Commit

Permalink
Merge pull request #2930 from hersle/fix_readme_example
Browse files Browse the repository at this point in the history
Fix README example
  • Loading branch information
ChrisRackauckas authored Aug 6, 2024
2 parents fc9897b + 6e7c6a0 commit adb6a84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit adb6a84

Please sign in to comment.