Skip to content

Commit

Permalink
Update for GeometricEquations v0.14.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Oct 9, 2023
1 parent 5d4a936 commit 08e53fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"

[compat]
ForwardDiff = "0.10"
GeometricEquations = "0.10"
GeometricEquations = "0.14"
GeometricSolutions = "0.3"
HDF5 = "0.16, 0.17"
LazyArrays = "1"
Expand Down
3 changes: 1 addition & 2 deletions src/Models/ReducedBasis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ function reduce!(model::ReducedBasisModel,k::Int,::ComplexSVD)
end

function compose(prob::ODEProblem, model::ReducedBasisModel)
vel = functions(prob).v
Rᵦ = model.reduced_basis

function red_v(du,t,u,p)
utemp = Rᵦ*u
dutemp = zero(utemp)
vel(dutemp,t,utemp)
functions(prob).v(dutemp,t,utemp,p)
du .= Rᵦ' * dutemp
end

Expand Down

0 comments on commit 08e53fd

Please sign in to comment.