Skip to content

Fix ModelingToolkit v10 compatibility #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/ODEProblemLibrary/src/ODEProblemLibrary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export prob_ode_linear, prob_ode_bigfloatlinear, prob_ode_2Dlinear,
end
end


include("ode_linear_prob.jl")
include("ode_simple_nonlinear_prob.jl")
include("brusselator_prob.jl")
Expand Down
18 changes: 9 additions & 9 deletions lib/ODEProblemLibrary/src/strange_attractors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eqs = [D(x) ~ sin(y) - b * x,
D(y) ~ sin(z) - b * y,
D(z) ~ sin(x) - b * z]

@mtkbuild thomas = System(eqs, t)
@mtkcompile thomas = System(eqs, t)

"""
Thomas' cyclically symmetric attractor equations
Expand All @@ -33,7 +33,7 @@ eqs = [D(x) ~ σ * (y - x),
D(y) ~ x * (ρ - z) - y,
D(z) ~ x * y - β * z]

@mtkbuild lorenz = System(eqs, t)
@mtkcompile lorenz = System(eqs, t)

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

@mtkbuild aizawa = System(eqs, t)
@mtkcompile aizawa = System(eqs, t)

"""
Aizawa equations
Expand All @@ -78,7 +78,7 @@ eqs = [D(x) ~ y - a * x + b * y * z,
D(y) ~ c * y - x * z + z,
D(z) ~ d * x * y - e * z]

@mtkbuild dadras = System(eqs, t)
@mtkcompile dadras = System(eqs, t)

"""
Dadras equations
Expand All @@ -100,7 +100,7 @@ eqs = [D(x) ~ a * (y - x),
D(y) ~ (c - a) * x - x * z + c * y,
D(z) ~ x * y - b * z]

@mtkbuild chen = System(eqs, t)
@mtkcompile chen = System(eqs, t)

"""
chen equations
Expand All @@ -122,7 +122,7 @@ eqs = [D(x) ~ -(y + z),
D(y) ~ x + a * y,
D(z) ~ b + z * (x - c)]

@mtkbuild rossler = System(eqs, t)
@mtkcompile rossler = System(eqs, t)

"""
rossler equations
Expand All @@ -145,7 +145,7 @@ eqs = [D(x) ~ y * (z - 1 + x^2) + b * x,
D(y) ~ x * (3 * z + 1 - x^2) + b * y,
D(z) ~ -2 * z * (a + x * y)]

@mtkbuild rabinovich_fabrikant = System(eqs, t)
@mtkcompile rabinovich_fabrikant = System(eqs, t)

"""
rabinovich_fabrikant equations
Expand All @@ -167,7 +167,7 @@ eqs = [D(x) ~ y + a * x * y + x * z,
D(y) ~ 1 - b * x^2 + y * z,
D(z) ~ x - x^2 - y^2]

@mtkbuild sprott = System(eqs, t)
@mtkcompile sprott = System(eqs, t)

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

@mtkbuild hindmarsh_rose = System(eqs, t)
@mtkcompile hindmarsh_rose = System(eqs, t)

"""
hindmarsh_rose equations
Expand Down
Loading