diff --git a/Project.toml b/Project.toml index 14995750..e0e20083 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "HarmonicBalance" uuid = "e13b9ff6-59c3-11ec-14b1-f3d2cc6c135e" authors = ["Jan Kosata ", "Javier del Pino ", "Orjan Ameye "] -version = "0.10.7" +version = "0.10.8" [deps] BijectiveHilbert = "91e7fc40-53cd-4118-bd19-d7fcd1de2a54" @@ -48,7 +48,7 @@ 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" @@ -56,7 +56,7 @@ 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" diff --git a/docs/src/.vitepress/config.mts b/docs/src/.vitepress/config.mts index 268c9eaf..6648d70f 100644 --- a/docs/src/.vitepress/config.mts +++ b/docs/src/.vitepress/config.mts @@ -27,18 +27,18 @@ export default defineConfig({ }, head: [ - // [ - // "script", - // { async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-Q8GYTEVTZ2" }, - // ], - // [ - // "script", - // {}, - // `window.dataLayer = window.dataLayer || []; - // function gtag(){dataLayer.push(arguments);} - // gtag('js', new Date()); - // gtag('config', 'G-Q8GYTEVTZ2');`, - // ], + [ + "script", + { async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-B15Z6PR1K0" }, + ], + [ + "script", + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-B15Z6PR1K0');`, + ], ['link', { rel: 'icon', href: '/HarmonicBalance.jl/dev/favicon.ico' }], ['link', { rel: 'manifest', href: '/site.webmanifest' }], ], diff --git a/ext/ModelingToolkitExt.jl b/ext/ModelingToolkitExt.jl index 932deb2d..1866f7ed 100644 --- a/ext/ModelingToolkitExt.jl +++ b/ext/ModelingToolkitExt.jl @@ -14,7 +14,8 @@ using ModelingToolkit: varmap_to_vars, parameters, @parameters, - @mtkbuild + @mtkbuild, + @independent_variables swapsides(eq::Equation) = Equation(eq.rhs, eq.lhs) @@ -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)