Skip to content

Commit

Permalink
temporary resolve MTK ext issue (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye authored Oct 6, 2024
1 parent 9dffada commit 91c2f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HarmonicBalance"
uuid = "e13b9ff6-59c3-11ec-14b1-f3d2cc6c135e"
authors = ["Jan Kosata <[email protected]>", "Javier del Pino <[email protected]>", "Orjan Ameye <[email protected]>"]
version = "0.10.7"
version = "0.10.8"

[deps]
BijectiveHilbert = "91e7fc40-53cd-4118-bd19-d7fcd1de2a54"
Expand Down Expand Up @@ -48,15 +48,15 @@ HomotopyContinuation = "2.9"
JET = "0.9.9"
JLD2 = "0.4.48, 0.5"
Latexify = "0.16"
ModelingToolkit = "9.34"
ModelingToolkit = "9.34 - 9.40"
NonlinearSolve = "3.14"
OrderedCollections = "1.6"
OrdinaryDiffEq = "v6.89"
Peaks = "0.5"
Plots = "1.39"
PrecompileTools = "1.2"
ProgressMeter = "1.7.2"
SteadyStateDiffEq = "2.3"
SteadyStateDiffEq = "2.3.2"
SymbolicUtils = "3.5"
Symbolics = "6.4"
julia = "1.10.0"
Expand Down
5 changes: 3 additions & 2 deletions ext/ModelingToolkitExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ using ModelingToolkit:
varmap_to_vars,
parameters,
@parameters,
@mtkbuild
@mtkbuild,
@independent_variables

swapsides(eq::Equation) = Equation(eq.rhs, eq.lhs)

Expand All @@ -30,7 +31,7 @@ function ModelingToolkit.ODESystem(eom::HarmonicEquation)
eom = rearrange_standard(eom)
end

slow_time = (@variables T; T)
slow_time = (@independent_variables T; T)
par_names = declare_parameter.(eom.parameters)
vars = get_variables(eom)

Expand Down

0 comments on commit 91c2f5f

Please sign in to comment.