]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the variable row instead of p->row() because we know what it is.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 20:10:25 +0000 (20:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 20:10:25 +0000 (20:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@28336 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/sparse_mic.templates.h

index bfb610dbd7391b27927d4de9e69db1371f1bc303..69034c07baed0c4cf59bb327467a6197abf40392 100644 (file)
@@ -143,7 +143,7 @@ void SparseMIC<number>::decompose (const SparseMatrix<somenumber> &matrix,
       // it's symmetric, so we can work with this alone
       for (typename SparseMatrix<somenumber>::const_iterator
            p = matrix.begin(row)+1;
-           (p != matrix.end(row)) && (p->column() < p->row());
+           (p != matrix.end(row)) && (p->column() < row);
            ++p)
         temp1 += p->value() / diag[p->column()] * inner_sums[p->column()];
 
@@ -166,7 +166,7 @@ SparseMIC<number>::get_rowsum (const unsigned int row) const
   for (typename SparseMatrix<number>::const_iterator
        p = this->begin(row)+1;
        p != this->end(row); ++p)
-    if (p->column() > p->row())
+    if (p->column() > row)
       rowsum += p->value();
 
   return rowsum;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.