Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DONT MERGE] Update solve.jl #114

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/solve.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function SciMLBase.__solve(prob::BVProblem, alg; kwargs...)
function SciMLBase.__solve(prob::BVProblem, alg, args...; kwargs...)
# If dispatch not directly defined
cache = init(prob, alg; kwargs...)
cache = init(prob, alg, args...; kwargs...)
return solve!(cache)
end

# Shooting Methods

function SciMLBase.__solve(prob::BVProblem, alg::Shooting; kwargs...)
function SciMLBase.__solve(prob::BVProblem, alg::Shooting, args...; kwargs...)
iip = isinplace(prob)
bc = prob.bc
u0 = deepcopy(prob.u0)
Expand All @@ -26,7 +26,7 @@ end

# MIRK Methods

function SciMLBase.__init(prob::BVProblem, alg::AbstractMIRK; dt = 0.0, abstol = 1e-3,
function SciMLBase.__init(prob::BVProblem, alg::AbstractMIRK, args...; dt = 0.0, abstol = 1e-3,
adaptive = true, kwargs...)
has_initial_guess = prob.u0 isa AbstractVector{<:AbstractArray}
(T, M, n) = if has_initial_guess
Expand Down