Skip to content

Commit 24b98e1

Browse files
Update lib/NonlinearSolveQuasiNewton/src/solve.jl
1 parent 8bfe4f1 commit 24b98e1

File tree

1 file changed

+3
-1
lines changed
  • lib/NonlinearSolveQuasiNewton/src

1 file changed

+3
-1
lines changed

lib/NonlinearSolveQuasiNewton/src/solve.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ end
107107

108108
function InternalAPI.reinit_self!(
109109
cache::QuasiNewtonCache, args...; p = cache.p, u0 = cache.u,
110-
alias_u0::Bool = cache.alias_u0, maxiters = cache.maxiters, maxtime = cache.maxtime, kwargs...
110+
alias_u0::Bool = hasproperty(cache, :alias_u0) ? cache.alias_u0 : false,
111+
maxiters = hasproperty(maxiters, :maxiters) ? cache.maxiters : 1000,
112+
maxtime = hasproperty(maxtime, :maxtime) ? cache.maxtime : nothing, kwargs...
111113
)
112114
Utils.reinit_common!(cache, u0, p, alias_u0)
113115

0 commit comments

Comments
 (0)