Skip to content

Commit

Permalink
renaming dopri5 -> core_integrator
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Dec 20, 2023
1 parent a2fe211 commit 4f05e61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/DormandPrince.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ include("types.jl")
include("interface.jl")
include("dp5_impl/mod.jl")

using DormandPrince.DP5Impl: dp5_integrate

using DormandPrince.DP5Impl: core_integrator

# export Interface
export DP5Solver, integrate
Expand Down
4 changes: 0 additions & 4 deletions src/dp5_impl/mod.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module DP5Impl

using ..DormandPrince: DormandPrince, DP5Solver, Vars, Consts, Options, Report
# external imports

include("helpers.jl")
include("checks.jl")
include("solver.jl")

export DP5Solver, dp5_integrate


end
8 changes: 4 additions & 4 deletions src/dp5_impl/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#include("checks.jl")
#include("helpers.jl")

function dp5_integrate(
solver,
xend
)
function core_integrator(
solver::DP5Solver{T},
xend::T
) where {T <: Real}

# check nmax, uround, safety factor, beta, safety_factor
# just accept solver.options and handle accessing attributes internally
Expand Down
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end
# 2. integrate(solver, times) -> iterator
# 3. integrate(callback, solver, times) -> vector of states with callback applied

integrate(solver::AbstractDPSolver{T}, time::T) where {T<:Real} = dp5_integrate(solver, time)
integrate(solver::AbstractDPSolver{T}, time::T) where {T <: Real} = core_integrator(solver, time)
integrate(solver::AbstractDPSolver{T}, times::AbstractVector{T}) where {T <: Real} = DP5Iterator(solver, times)

function integrate(callback, solver::AbstractDPSolver{T}, times::AbstractVector{T}; sort_times::Bool = true) where {T <: Real}
Expand Down

0 comments on commit 4f05e61

Please sign in to comment.