From c190838450aa99020afd2267304e0dcba0b8b758 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sun, 30 Oct 2011 02:03:12 +0200 Subject: [PATCH] Get rid of ui_copy --- src/myblockproblem.hh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/myblockproblem.hh b/src/myblockproblem.hh index 30942301..e4c4e80a 100644 --- a/src/myblockproblem.hh +++ b/src/myblockproblem.hh @@ -118,14 +118,11 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { Dune::MyNonlinearity<block_size> phi(func); Dune::SampleFunctional<block_size> localJ(*localA, localb, phi); - LocalVectorType ui_copy = ui; - LocalVectorType correction; for (size_t i = 1; i <= 10; ++i) { // FIXME: hardcoded value - Dune::minimise(localJ, ui_copy, correction); - ui_copy += correction; + Dune::minimise(localJ, ui, correction); + ui += correction; } - ui = ui_copy; return; } -- GitLab