]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some confusion from yesterday. Not a bug here because matrices have to be
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 13 Feb 2013 14:05:26 +0000 (14:05 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 13 Feb 2013 14:05:26 +0000 (14:05 +0000)
square, but still harder to read than necessary.

git-svn-id: https://svn.dealii.org/trunk@28368 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/sparse_direct.cc

index eb42a4d19e89fac0a8a02f0c303c39b429e8d99f..8585f4cba45183b508fc87e03546e597b0d9cf20 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012 by the deal.II authors
+//    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1728,7 +1728,7 @@ factorize (const Matrix &matrix)
 
     // loop over the elements of the matrix row by row, as suggested
     // in the documentation of the sparse matrix iterator class
-    for (unsigned int row = 0; row < matrix.n(); ++row)
+    for (unsigned int row = 0; row < matrix.m(); ++row)
       {
         for (typename Matrix::const_iterator p=matrix.begin(row);
             p!=matrix.end(row); ++p)
@@ -1962,7 +1962,7 @@ void SparseDirectMUMPS::initialize_matrix (const Matrix &matrix)
 
       // loop over the elements of the matrix row by row, as suggested
       // in the documentation of the sparse matrix iterator class
-      for (unsigned int row = 0; row < matrix.n(); ++row)
+      for (unsigned int row = 0; row < matrix.m(); ++row)
         {
           for (typename Matrix::const_iterator ptr = matrix.begin (row);
               ptr != matrix.end (row); ++ptr)

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.