]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Corrected an error in collective add function.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Nov 2008 07:55:16 +0000 (07:55 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Nov 2008 07:55:16 +0000 (07:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@17763 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h

index 16f04091b73a96d60b90c20037d9d118eed0a028..f324138bc4f6c6fee1ea4f3afd602875fd8b9c11 100644 (file)
@@ -2123,8 +2123,8 @@ SparseMatrix<number>::set (const unsigned int  row,
 
       if (value == 0 && elide_zero_values == true)
        {
-         continue;
          ++index_ptr;
+         continue;
        }
 
       const unsigned int index = cols->operator()(row, *index_ptr++);
@@ -2262,8 +2262,8 @@ SparseMatrix<number>::add (const unsigned int  row,
 
       if (value == 0 && elide_zero_values == true)
        {
-         continue;
          ++index_ptr;
+         continue;
        }
 
       const unsigned int index = cols->operator()(row, *index_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.