Skip to content

Commit e96981d

Browse files
Merge pull request #147 from SciML/fix-mtk-v10-compatibility
Fix ModelingToolkit v10 compatibility
2 parents a0f70de + 3db1f97 commit e96981d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/ODEProblemLibrary/src/ODEProblemLibrary.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export prob_ode_linear, prob_ode_bigfloatlinear, prob_ode_2Dlinear,
3737
end
3838
end
3939

40+
4041
include("ode_linear_prob.jl")
4142
include("ode_simple_nonlinear_prob.jl")
4243
include("brusselator_prob.jl")

lib/ODEProblemLibrary/src/strange_attractors.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ eqs = [D(x) ~ sin(y) - b * x,
1010
D(y) ~ sin(z) - b * y,
1111
D(z) ~ sin(x) - b * z]
1212

13-
@mtkbuild thomas = System(eqs, t)
13+
@mtkcompile thomas = System(eqs, t)
1414

1515
"""
1616
Thomas' cyclically symmetric attractor equations
@@ -33,7 +33,7 @@ eqs = [D(x) ~ σ * (y - x),
3333
D(y) ~ x *- z) - y,
3434
D(z) ~ x * y - β * z]
3535

36-
@mtkbuild lorenz = System(eqs, t)
36+
@mtkcompile lorenz = System(eqs, t)
3737

3838
"""
3939
Lorenz equations
@@ -56,7 +56,7 @@ eqs = [D(x) ~ (z - b) * x - d * y,
5656
D(y) ~ d * x + (z - b) * y,
5757
D(z) ~ c + a * z - z^3 / 3 - (x^2 + y^2) * (1 + e * z) + f * z * x^3]
5858

59-
@mtkbuild aizawa = System(eqs, t)
59+
@mtkcompile aizawa = System(eqs, t)
6060

6161
"""
6262
Aizawa equations
@@ -78,7 +78,7 @@ eqs = [D(x) ~ y - a * x + b * y * z,
7878
D(y) ~ c * y - x * z + z,
7979
D(z) ~ d * x * y - e * z]
8080

81-
@mtkbuild dadras = System(eqs, t)
81+
@mtkcompile dadras = System(eqs, t)
8282

8383
"""
8484
Dadras equations
@@ -100,7 +100,7 @@ eqs = [D(x) ~ a * (y - x),
100100
D(y) ~ (c - a) * x - x * z + c * y,
101101
D(z) ~ x * y - b * z]
102102

103-
@mtkbuild chen = System(eqs, t)
103+
@mtkcompile chen = System(eqs, t)
104104

105105
"""
106106
chen equations
@@ -122,7 +122,7 @@ eqs = [D(x) ~ -(y + z),
122122
D(y) ~ x + a * y,
123123
D(z) ~ b + z * (x - c)]
124124

125-
@mtkbuild rossler = System(eqs, t)
125+
@mtkcompile rossler = System(eqs, t)
126126

127127
"""
128128
rossler equations
@@ -145,7 +145,7 @@ eqs = [D(x) ~ y * (z - 1 + x^2) + b * x,
145145
D(y) ~ x * (3 * z + 1 - x^2) + b * y,
146146
D(z) ~ -2 * z * (a + x * y)]
147147

148-
@mtkbuild rabinovich_fabrikant = System(eqs, t)
148+
@mtkcompile rabinovich_fabrikant = System(eqs, t)
149149

150150
"""
151151
rabinovich_fabrikant equations
@@ -167,7 +167,7 @@ eqs = [D(x) ~ y + a * x * y + x * z,
167167
D(y) ~ 1 - b * x^2 + y * z,
168168
D(z) ~ x - x^2 - y^2]
169169

170-
@mtkbuild sprott = System(eqs, t)
170+
@mtkcompile sprott = System(eqs, t)
171171

172172
"""
173173
sprott equations
@@ -189,7 +189,7 @@ eqs = [D(x) ~ y - a * x^3 + b * x^2 - z + i,
189189
D(y) ~ c - d * x^2 - y,
190190
D(z) ~ r * (s * (x - xr) - z)]
191191

192-
@mtkbuild hindmarsh_rose = System(eqs, t)
192+
@mtkcompile hindmarsh_rose = System(eqs, t)
193193

194194
"""
195195
hindmarsh_rose equations

0 commit comments

Comments
 (0)