Skip to content

Commit a2a7dad

Browse files
committed
Correct usage of __solve
1 parent 672e7aa commit a2a7dad

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

lib/BoundaryValueDiffEqAscher/src/ascher.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ function __perform_ascher_iteration(cache::AscherCache{iip, T}, abstol, adaptive
176176
info::ReturnCode.T = ReturnCode.Success
177177
nlprob = __construct_nlproblem(cache)
178178
nlsolve_alg = __concrete_nonlinearsolve_algorithm(nlprob, cache.alg.nlsolve)
179-
nlsol = __solve(nlprob, nlsolve_alg; abstol, verbose, kwargs..., nlsolve_kwargs...)
179+
nlsol = __solve(nlprob, nlsolve_alg; abstol = abstol,
180+
verbose = verbose, kwargs..., nlsolve_kwargs...)
180181
error_norm = 2 * abstol
181182
info = nlsol.retcode
182183

@@ -204,7 +205,8 @@ function __perform_ascher_iteration(cache::AscherCache{iip, T}, abstol, adaptive
204205
__expand_cache_for_error!(cache)
205206

206207
_nlprob = __construct_nlproblem(cache)
207-
nlsol = __solve(_nlprob, nlsolve_alg; abstol, kwargs..., nlsolve_kwargs...)
208+
nlsol = __solve(_nlprob, nlsolve_alg; abstol = abstol,
209+
verbose = verbose, kwargs..., nlsolve_kwargs...)
208210

209211
error_norm = error_estimate!(cache)
210212
if norm(error_norm) > abstol

lib/BoundaryValueDiffEqFIRK/src/firk.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ function __perform_firk_iteration(cache::Union{FIRKCacheExpand, FIRKCacheNested}
344344
adaptive::Bool, verbose::Bool; nlsolve_kwargs = (;), kwargs...)
345345
nlprob = __construct_nlproblem(cache, vec(cache.y₀), copy(cache.y₀))
346346
nlsolve_alg = __concrete_nonlinearsolve_algorithm(nlprob, cache.alg.nlsolve)
347-
sol_nlprob = __solve(
348-
nlprob, nlsolve_alg; abstol, verbose, kwargs..., nlsolve_kwargs..., alias_u0 = true)
347+
sol_nlprob = __solve(nlprob, nlsolve_alg; abstol = abstol, verbose = verbose,
348+
kwargs..., nlsolve_kwargs..., alias_u0 = true)
349349
recursive_unflatten!(cache.y₀, sol_nlprob.u)
350350

351351
defect_norm = 2 * abstol

lib/BoundaryValueDiffEqMIRK/src/mirk.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ function __perform_mirk_iteration(cache::MIRKCache, abstol, adaptive::Bool,
156156
verbose::Bool; nlsolve_kwargs = (;), kwargs...)
157157
nlprob = __construct_nlproblem(cache, vec(cache.y₀), copy(cache.y₀))
158158
nlsolve_alg = __concrete_nonlinearsolve_algorithm(nlprob, cache.alg.nlsolve)
159-
sol_nlprob = __solve(
160-
nlprob, nlsolve_alg; abstol, verbose, kwargs..., nlsolve_kwargs..., alias_u0 = true)
159+
sol_nlprob = __solve(nlprob, nlsolve_alg; abstol = abstol, verbose = verbose,
160+
kwargs..., nlsolve_kwargs..., alias_u0 = true)
161161
recursive_unflatten!(cache.y₀, sol_nlprob.u)
162162

163163
defect_norm = 2 * abstol

lib/BoundaryValueDiffEqMIRKN/src/mirkn.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ function __perform_mirkn_iteration(
107107
cache::MIRKNCache, abstol, verbose; nlsolve_kwargs = (;), kwargs...)
108108
nlprob::NonlinearProblem = __construct_nlproblem(cache, vec(cache.y₀))
109109
nlsolve_alg = __concrete_nonlinearsolve_algorithm(nlprob, cache.alg.nlsolve)
110-
sol_nlprob = __solve(
111-
nlprob, nlsolve_alg; abstol, verbose, kwargs..., nlsolve_kwargs..., alias_u0 = true)
110+
sol_nlprob = __solve(nlprob, nlsolve_alg; abstol = abstol, verbose = verbose,
111+
kwargs..., nlsolve_kwargs..., alias_u0 = true)
112112
recursive_unflatten!(cache.y₀, sol_nlprob.u)
113113

114114
return sol_nlprob, sol_nlprob.retcode

0 commit comments

Comments
 (0)