Skip to content

Commit 9d7a87a

Browse files
committed
Clean up rebase
1 parent abf3be0 commit 9d7a87a

File tree

4 files changed

+7
-30
lines changed

4 files changed

+7
-30
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Aqua = "0.7"
4242
ArrayInterface = "7"
4343
BandedMatrices = "1"
4444
ConcreteStructs = "0.2"
45-
DiffEqBase = "6.135"
45+
DiffEqBase = "6.138"
4646
ForwardDiff = "0.10"
4747
LinearAlgebra = "1.9"
4848
LinearSolve = "2"

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ Precompilation can be controlled via `Preferences.jl`
4848
- `PrecompileMIRK` -- Precompile the MIRK2 - MIRK6 algorithms (default: `true`).
4949
- `PrecompileShooting` -- Precompile the single shooting algorithms (default: `true`). This is triggered when `OrdinaryDiffEq` is loaded.
5050
- `PrecompileMultipleShooting` -- Precompile the multiple shooting algorithms (default: `true`). This is triggered when `OrdinaryDiffEq` is loaded.
51-
<<<<<<< HEAD
51+
<<<<<<< HEAD
5252
- `PrecompileMIRKNLLS` -- Precompile the MIRK2 - MIRK6 algorithms for under-determined and over-determined BVPs (default: `true` on Julia Version 1.10 and above).
5353
- `PrecompileShootingNLLS` -- Precompile the single shooting algorithms for under-determined and over-determined BVPs (default: `true` on Julia Version 1.10 and above). This is triggered when `OrdinaryDiffEq` is loaded.
5454
- `PrecompileMultipleShootingNLLS` -- Precompile the multiple shooting algorithms for under-determined and over-determined BVPs (default: `true` on Julia Version 1.10 and above). This is triggered when `OrdinaryDiffEq` is loaded.
55-
=======
56-
>>>>>>> 5d53c01 (Add documentation about the solvers)
55+
=======
56+
57+
> > > > > > > 5d53c01 (Add documentation about the solvers)
5758
5859
To set these preferences before loading the package, do the following (replacing `PrecompileShooting` with the preference you want to set, or pass in multiple pairs to set them together):
5960

src/BoundaryValueDiffEq.jl

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,6 @@ end
2222

2323
@reexport using ADTypes, DiffEqBase, NonlinearSolve, SparseDiffTools, SciMLBase
2424

25-
# TODO: Upstream
26-
# For BVPs we want to propagate even a function u0
27-
function DiffEqBase.get_concrete_u0(prob::BVProblem, isadapt, t0, kwargs)
28-
if haskey(kwargs, :u0)
29-
u0 = kwargs[:u0]
30-
else
31-
u0 = prob.u0
32-
end
33-
34-
isadapt && eltype(u0) <: Integer && (u0 = float.(u0))
35-
36-
_u0 = DiffEqBase.handle_distribution_u0(u0)
37-
38-
if isinplace(prob) && (_u0 isa Number || _u0 isa DiffEqBase.SArray)
39-
throw(DiffEqBase.IncompatibleInitialConditionError())
40-
end
41-
42-
if _u0 isa Tuple
43-
throw(DiffEqBase.TupleStateError())
44-
end
45-
46-
return _u0
47-
end
48-
# End of Upstream
49-
5025
include("types.jl")
5126
include("utils.jl")
5227
include("algorithms.jl")

src/solve/multiple_shooting.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ function __solve(prob::BVProblem, _alg::MultipleShooting{true}; odesolve_kwargs
22
nlsolve_kwargs = (;), ensemblealg = EnsembleThreads(), verbose = true, kwargs...)
33
# For TwoPointBVPs there is nothing to do. Forward to general multiple shooting
44
prob.problem_type isa TwoPointBVProblem &&
5-
return __solve_internal(prob, _alg; kwargs...)
5+
return __solve_internal(prob, _alg; odesolve_kwargs, nlsolve_kwargs, ensemblealg,
6+
verbose, kwargs...)
67

78
# Extract the time-points used in BC
89
_prob = ODEProblem{isinplace(prob)}(prob.f, prob.u0, prob.tspan, prob.p)

0 commit comments

Comments
 (0)