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

Cleanup

parent fe5a43fe
No related branches found
No related tags found
No related merge requests found
...@@ -109,10 +109,6 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -109,10 +109,6 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
localA = &(*it); // localA = &A[m][m] localA = &(*it); // localA = &A[m][m]
(*it).umv(u[j], localb); // localb += A[m][j] * u[j] (*it).umv(u[j], localb); // localb += A[m][j] * u[j]
LocalMatrixType foo = problem.A[j][m];
foo -= problem.A[m][j];
// if (foo.infinity_norm() != 0)
// std::cout << "Indices: " << col << ", " << m << std::endl;
} }
localb -= problem.f[m]; localb -= problem.f[m];
assert(localA != NULL); assert(localA != NULL);
...@@ -124,11 +120,10 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -124,11 +120,10 @@ class MyBlockProblem<ConvexProblemTypeTEMPLATE>::IterateObject {
LocalVectorType ui_copy = ui; LocalVectorType ui_copy = ui;
// std::cout << "Norm before: " << ui.two_norm() << std::endl;
LocalVectorType correction; LocalVectorType correction;
for (size_t i = 1; i <= 5; ++i) { for (size_t i = 1; i <= 5; ++i) {
Dune::minimise(localJ, ui_copy, correction); Dune::minimise(localJ, ui_copy, correction);
ui_copy += correction; // This should be correct ui_copy += correction;
} }
ui = ui_copy; ui = ui_copy;
......
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