Skip to content
Snippets Groups Projects
Commit ac9aa7f3 authored by Max Kahnt's avatar Max Kahnt
Browse files

Rename variable.

parent 72b5bf3c
Branches
No related tags found
No related merge requests found
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
namespace Dune { namespace Dune {
namespace MatrixVector { namespace MatrixVector {
template <class Matrix, class Vector, class BitVector> template <class Matrix, class Vector, class BitVector>
static void lowerTriangularSolve(Matrix const& A, Vector const& b, Vector& x, static void lowerTriangularSolve(Matrix const& L, Vector const& b, Vector& x,
BitVector const* ignore, BitVector const* ignore,
bool transpose = false) { bool transpose = false) {
x = 0; x = 0;
Vector r = b; Vector r = b;
if (transpose) { if (transpose) {
for (auto it = A.begin(); it != A.end(); ++it) { for (auto it = L.begin(); it != L.end(); ++it) {
const size_t i = it.index(); const size_t i = it.index();
if (ignore != nullptr and (*ignore)[i].all()) if (ignore != nullptr and (*ignore)[i].all())
continue; continue;
...@@ -23,7 +23,7 @@ namespace MatrixVector { ...@@ -23,7 +23,7 @@ namespace MatrixVector {
} }
} }
} else { } else {
for (auto it = A.begin(); it != A.end(); ++it) { for (auto it = L.begin(); it != L.end(); ++it) {
size_t i = it.index(); size_t i = it.index();
if (ignore != nullptr and (*ignore)[i].all()) if (ignore != nullptr and (*ignore)[i].all())
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment