Skip to content

Commit ce2b3e0

Browse files
committed
Fix Aqua error
1 parent 5c21462 commit ce2b3e0

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

lib/BoundaryValueDiffEqCore/src/utils.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,12 @@ end
623623
@inline __default_cost(f) = f
624624
@inline __default_cost(fun::BVPFunction) = __default_cost(fun.cost)
625625

626+
"""
627+
__construct_internal_problem
628+
629+
Constructs the internal problem based on the type of the boundary value problem and the
630+
algorithm used. It returns either a `NonlinearProblem` or an `OptimizationProblem`.
631+
"""
626632
function __construct_internal_problem(
627633
prob::BVProblem, alg, loss, jac, jac_prototype, resid_prototype, y, p, M, N)
628634
T = eltype(y)

lib/BoundaryValueDiffEqMIRK/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ FastClosures = "0.3.2"
4242
ForwardDiff = "0.10.38, 1"
4343
Hwloc = "3"
4444
InteractiveUtils = "<0.0.1, 1"
45+
Ipopt = "1.10.6"
4546
JET = "0.9.18"
4647
LinearAlgebra = "1.10"
4748
LinearSolve = "2.36.2, 3"
4849
Mooncake = "0.4.108"
50+
OptimizationMOI = ""
4951
OrdinaryDiffEqRosenbrock = "1"
5052
PreallocationTools = "0.4.24"
5153
PrecompileTools = "1.2"

lib/BoundaryValueDiffEqMIRK/src/adaptivity.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ end
498498
new_prob = remake(prob, u0 = high_sol)
499499
high_cache = SciMLBase.__init(new_prob, alg, adaptive = false)
500500

501-
high_nlprob = __construct_nlproblem(
502-
high_cache, vec(high_sol), VectorOfArray(high_sol.u))
501+
high_nlprob = __construct_problem(high_cache, vec(high_sol), VectorOfArray(high_sol.u))
503502
high_sol_original = __solve(
504503
high_nlprob, nlsolve_alg; cache.nlsolve_kwargs..., alias_u0 = true)
505504
recursive_unflatten!(high_sol, high_sol_original.u)
@@ -518,7 +517,7 @@ end
518517
new_prob = remake(prob, u0 = high_sol)
519518
high_cache = SciMLBase.__init(new_prob, __high_order_method(alg), adaptive = false)
520519

521-
high_nlprob = __construct_nlproblem(high_cache, sol.u, high_sol)
520+
high_nlprob = __construct_problem(high_cache, sol.u, high_sol)
522521
high_sol_nlprob = __solve(
523522
high_nlprob, nlsolve_alg; cache.nlsolve_kwargs..., alias_u0 = true)
524523
recursive_unflatten!(high_sol, high_sol_nlprob)

0 commit comments

Comments
 (0)