From: bangerth Date: Tue, 12 Feb 2013 20:10:25 +0000 (+0000) Subject: Use the variable row instead of p->row() because we know what it is. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e89da2d1697fe45bca8d0d4120c1f791bdfcecf;p=dealii-svn.git Use the variable row instead of p->row() because we know what it is. git-svn-id: https://svn.dealii.org/trunk@28336 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_mic.templates.h b/deal.II/include/deal.II/lac/sparse_mic.templates.h index bfb610dbd7..69034c07ba 100644 --- a/deal.II/include/deal.II/lac/sparse_mic.templates.h +++ b/deal.II/include/deal.II/lac/sparse_mic.templates.h @@ -143,7 +143,7 @@ void SparseMIC::decompose (const SparseMatrix &matrix, // it's symmetric, so we can work with this alone for (typename SparseMatrix::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::get_rowsum (const unsigned int row) const for (typename SparseMatrix::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;