Skip to content

Commit c6ec039

Browse files
author
oscarddssmith
committed
set atmp
1 parent 6dcb0e9 commit c6ec039

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nlsolve/type.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ mutable struct NonlinearSolveCache{uType, tType, rateType, tType2, P, C} <:
237237
ustep::uType
238238
tstep::tType
239239
k::rateType
240+
atmp::uType
240241
invγdt::tType2
241242
prob::P
242243
cache::C
243-
atmp::uType
244244
end

src/nlsolve/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function build_nlsolver(
224224
end
225225
prob = NonlinearProblem(NonlinearFunction(nlf), ztmp, nlp_params)
226226
cache = init(prob, nlalg.alg)
227-
nlcache = NonlinearSolveCache(ustep, tstep, k, invγdt, prob, cache)
227+
nlcache = NonlinearSolveCache(ustep, tstep, k, atmp, invγdt, prob, cache)
228228
else
229229
nlcache = NLNewtonCache(ustep, tstep, k, atmp, dz, J, W, true,
230230
true, true, tType(dt), du1, uf, jac_config,
@@ -308,7 +308,7 @@ function build_nlsolver(
308308
end
309309
prob = NonlinearProblem(NonlinearFunction(nlf), copy(ztmp), nlp_params)
310310
cache = init(prob, nlalg.alg)
311-
nlcache = NonlinearSolveCache(nothing, tstep, nothing, invγdt, prob, cache)
311+
nlcache = NonlinearSolveCache(nothing, tstep, nothing, nothing, invγdt, prob, cache)
312312
else
313313
nlcache = NLNewtonConstantCache(tstep, J, W, true, true, true, tType(dt), uf,
314314
invγdt, tType(nlalg.new_W_dt_cutoff), t)

0 commit comments

Comments
 (0)