Skip to content

Commit

Permalink
Fix for GeometricBase v0.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Sep 20, 2023
1 parent 05fda11 commit 73d29d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"

[compat]
GeometricBase = "0.8, 0.9"
GeometricBase = "0.9"
GeometricEquations = "0.12, 0.13, 0.14"
RuntimeGeneratedFunctions = "0.5"
Symbolics = "5"
Expand Down
2 changes: 1 addition & 1 deletion src/EulerLagrange.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module EulerLagrange

using GeometricBase: NullParameters, State
using GeometricBase: NullParameters, StateVariable
using RuntimeGeneratedFunctions
using Symbolics
using Symbolics: ArrayLike, FnType, Sym
Expand Down
2 changes: 1 addition & 1 deletion src/hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function HODEProblem(lsys::HamiltonianSystem, tspan::Tuple, tstep::Real, ics::Na
HODEProblem(eqs.v, eqs.f, eqs.H, tspan, tstep, ics)
end

function HODEProblem(lsys::HamiltonianSystem, tspan::Tuple, tstep::Real, q₀::State, p₀::State)
function HODEProblem(lsys::HamiltonianSystem, tspan::Tuple, tstep::Real, q₀::StateVariable, p₀::StateVariable)
ics = (q = q₀, p = p₀)
HODEProblem(lsys, tspan, tstep, ics)
end
2 changes: 1 addition & 1 deletion src/lagrangian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function LODEProblem(lsys::LagrangianSystem, tspan::Tuple, tstep::Real, ics::Nam
LODEProblem(eqs.ϑ, eqs.f, eqs.g, eqs.ω, eqs.L, tspan, tstep, ics; v̄ = eqs.v̄, f̄ = eqs.f̄)
end

function LODEProblem(lsys::LagrangianSystem, tspan::Tuple, tstep::Real, q₀::State, p₀::State, λ₀::State = zero(q₀))
function LODEProblem(lsys::LagrangianSystem, tspan::Tuple, tstep::Real, q₀::StateVariable, p₀::StateVariable, λ₀::StateVariable = zero(q₀))
ics = (q = q₀, p = p₀, λ = λ₀)
LODEProblem(lsys, tspan, tstep, ics)
end

0 comments on commit 73d29d7

Please sign in to comment.