]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
change debug check in trilinos vector and add comment
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2012 18:11:28 +0000 (18:11 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2012 18:11:28 +0000 (18:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@26010 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector_base.h

index 2b462a77078832e6f1825d6c5bd97b7a590f789c..4cabc1f59e29af3e57491d1fde76957a644c1bfc 100644 (file)
@@ -461,6 +461,10 @@ namespace TrilinosWrappers
                                         * To figure out which elements
                                         * exactly are stored locally,
                                         * use local_range().
+                                        *
+                                        * If the vector contains ghost
+                                        * elements, they are included in
+                                        * this number.
                                         */
       unsigned int local_size () const;
 
@@ -1728,8 +1732,8 @@ namespace TrilinosWrappers
                                      // if we have ghost values, do not allow
                                      // writing to this vector at all.
     Assert (!has_ghost_elements(), ExcGhostsPresent());
-    Assert (local_size() == v.local_size(),
-            ExcDimensionMismatch(local_size(), v.local_size()));
+    Assert (size() == v.size(),
+            ExcDimensionMismatch(size(), v.size()));
 
     Assert (numbers::is_finite(s), ExcNumberNotFinite());
 

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.