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

Fix logical bug: Forgotten `continue'

parent 4090de30
No related branches found
No related tags found
No related merge requests found
...@@ -108,8 +108,8 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -108,8 +108,8 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
int const j = it.index(); int const j = it.index();
if (j == m) if (j == m)
localA = &(*it); // localA = &A[m][m] localA = &(*it); // localA = &A[m][m]
else
it->mmv(u[j], localb); // localb += A[m][j] * u[j] it->mmv(u[j], localb); // localb += A[m][j] * u[j]
} }
assert(localA != NULL); assert(localA != NULL);
...@@ -125,7 +125,7 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -125,7 +125,7 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
Dune::minimise(localJ, ui_copy, correction); Dune::minimise(localJ, ui_copy, correction);
ui_copy += correction; ui_copy += correction;
} }
ui += ui_copy; ui = ui_copy;
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment