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

Fix logical bug: b already has a minus

parent de0be5a0
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,9 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -109,9 +109,9 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
if (j == m) if (j == m)
localA = &(*it); // localA = &A[m][m] localA = &(*it); // localA = &A[m][m]
it->umv(u[j], localb); // localb += A[m][j] * u[j] it->mmv(u[j], localb); // localb += A[m][j] * u[j]
} }
localb -= problem.f[m]; // localb -= b[m] localb += problem.f[m]; // localb -= b[m]
assert(localA != NULL); assert(localA != NULL);
// FIXME: Hardcoding a fixed function here for now // FIXME: Hardcoding a fixed function here for now
...@@ -126,8 +126,7 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -126,8 +126,7 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
Dune::minimise(localJ, ui_copy, correction); Dune::minimise(localJ, ui_copy, correction);
ui_copy += correction; ui_copy += correction;
} }
// FIXME: this makes no sense. Why does it work this way?! 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