@@ -20,7 +20,7 @@ using ModelingToolkit: t_nounits as t, D_nounits as D
2020eqs =  [D (D (x)) ~  λ *  x
2121       D (D (y)) ~  λ *  y -  g
2222       x^ 2  +  y^ 2  ~  1 ]
23- @mtkbuild   pend =  System (eqs, t)
23+ @mtkcompile   pend =  System (eqs, t)
2424prob =  ODEProblem (pend, [x =>  - 1 , y =>  0 ], (0.0 , 10.0 ), [g =>  1 ], guesses =  [λ =>  1 ])
2525
2626sol =  solve (prob, FBDF ())
@@ -37,7 +37,7 @@ eqs = [
3737    D (z) ~  x *  y -  β *  z +  0.1 z *  a
3838]
3939
40- @mtkbuild   sys1 =  System (eqs, t)
40+ @mtkcompile   sys1 =  System (eqs, t)
4141
4242eqs =  [
4343    D (x) ~  σ *  (y -  x),
@@ -49,7 +49,7 @@ noiseeqs = [0.1*x;
4949            0.1 * y;
5050            0.1 * z;;]
5151
52- @mtkbuild   sys2 =  SDESystem (eqs, noiseeqs, t)
52+ @mtkcompile   sys2 =  SDESystem (eqs, noiseeqs, t)
5353
5454u0 =  [
5555    x =>  1.0 ,
@@ -73,7 +73,7 @@ odeprob = ODEProblem(sys1, u0, (0.0, 10.0), p; check_compatibility = false)
7373eqs =  [0  ~  σ *  (y -  x),
7474    y ~  x *  (ρ -  z),
7575    β *  z ~  x *  y]
76- @mtkbuild   sys =  System (eqs)
76+ @mtkcompile   sys =  System (eqs)
7777
7878# # ImplicitDiscrete Affects
7979
@@ -83,7 +83,7 @@ eqs = [D(D(x)) ~ λ * x
8383       D (D (y)) ~  λ *  y -  g
8484       x^ 2  +  y^ 2  ~  1 ]
8585c_evt =  [t ~  5.0 ] =>  [x ~  Pre (x) +  0.1 ]
86- @mtkbuild   pend =  System (eqs, t, continuous_events =  c_evt)
86+ @mtkcompile   pend =  System (eqs, t, continuous_events =  c_evt)
8787prob =  ODEProblem (pend, [x =>  - 1 , y =>  0 ], (0.0 , 10.0 ), [g =>  1 ], guesses =  [λ =>  1 ])
8888
8989sol =  solve (prob, FBDF ())
@@ -104,4 +104,4 @@ function SysC(; name)
104104    @named  subsys =  SysB (; var1 =  x)
105105    return  System ([D (x) ~  x], t; systems =  [subsys], name)
106106end 
107- @mtkbuild   sys =  SysC ()
107+ @mtkcompile   sys =  SysC ()
0 commit comments