Skip to content

Commit

Permalink
Add missing integrate method.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Aug 29, 2023
1 parent 3167be3 commit 733629f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/integrators/integrator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ end


# Apply integrator for ntime time steps and return solution.
function integrate(integrator::DeterministicIntegrator; kwargs...)
solution = Solution(problem(integrator); kwargs...)
integrate!(solution, integrator)
end

function integrate(problem::AbstractProblem, method::GeometricMethod; kwargs...)
integrator = GeometricIntegrator(problem, method; kwargs...)
solution = Solution(problem; kwargs...)
integrate!(solution, integrator)
integrate(integrator)
end

function integrate(problems::GeometricEnsemble, method::GeometricMethod; kwargs...)
Expand Down

0 comments on commit 733629f

Please sign in to comment.