Skip to content
Snippets Groups Projects
Commit c1908384 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Get rid of ui_copy

parent bd24a5b2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment