]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a stupid oversight.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 May 2005 03:43:30 +0000 (03:43 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 May 2005 03:43:30 +0000 (03:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@10607 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_matrix_base.h

index ace5bf7effe66f897c8c8885ef85f9c8d768d864..e2e9bb5db79c15c86d9d098906a98f7707622139 100644 (file)
@@ -851,15 +851,10 @@ namespace PETScWrappers
           accessor.a_index = 0;
           ++accessor.a_row;
       
-          while (accessor.a_index >= accessor.matrix->row_length(accessor.a_row))
-            {
-              ++accessor.a_row;
-
-                                           // if we happened to find the end
-                                           // of the matrix, then stop here
-              if (accessor.a_row == accessor.matrix->m())
-                break;
-            }
+          while ((accessor.a_row < accessor.matrix->m())
+                 &&
+                 (accessor.matrix->row_length(accessor.a_row) == 0))
+            ++accessor.a_row;
 
           accessor.visit_present_row();
         }

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.