We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d021f2e commit 216c237Copy full SHA for 216c237
lib/NonlinearSolveBase/src/termination_conditions.jl
@@ -98,9 +98,11 @@ function SciMLBase.reinit!(
98
length(saved_value_prototype) != 0 && (cache.saved_values = saved_value_prototype)
99
100
mode = cache.mode
101
- u_unaliased = mode isa AbstractSafeBestNonlinearTerminationMode ?
102
- (ArrayInterface.can_setindex(u) ? copy(u) : u) : nothing
103
- cache.u = u_unaliased
+ if ArrayInterface.can_setindex(u)
+ cache.u .= u
+ else
104
+ cache.u = u
105
+ end
106
cache.retcode = ReturnCode.Default
107
108
cache.abstol = get_tolerance(u, abstol, T)
0 commit comments