]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clarify docs. Fix one place where a check was forgotten
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 16:51:11 +0000 (16:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 16:51:11 +0000 (16:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@13473 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/hp_dof_objects.h
deal.II/deal.II/source/dofs/hp_dof_objects.cc

index d386fb09f50ce50008fffeb48d093bb70d6d997e..33b19b3b40ab7aaeca909608707bf5ec92016bbe 100644 (file)
@@ -195,6 +195,12 @@ namespace internal
                                           * value may be one or any
                                           * other value larger than
                                           * that.
+                                         *
+                                         * If the object is not part
+                                         * of an active cell, then no
+                                         * degrtees of freedom have
+                                         * been distributed and zero
+                                         * is returned.
                                           */
         template <int spacedim>
         unsigned int
index 498acfd3167e736b9ea76650c370c743b0d5d698..a9afdf9964e62b340a05232268a070677dec5d48 100644 (file)
@@ -961,10 +961,8 @@ namespace internal
                                        // make sure we are on an
                                        // object for which DoFs have
                                        // been allocated at all
-      Assert (dof_offsets[obj_index] != deal_II_numbers::invalid_unsigned_int,
-              ExcMessage ("You are trying to access degree of freedom "
-                          "information for an object on which no such "
-                          "information is available"));
+      if (dof_offsets[obj_index] == deal_II_numbers::invalid_unsigned_int)
+       return 0;
       
                                        // if we are in 2d, then the
                                        // only set of indices we store
@@ -1468,10 +1466,8 @@ namespace internal
                                        // make sure we are on an
                                        // object for which DoFs have
                                        // been allocated at all
-      Assert (dof_offsets[obj_index] != deal_II_numbers::invalid_unsigned_int,
-              ExcMessage ("You are trying to access degree of freedom "
-                          "information for an object on which no such "
-                          "information is available"));
+      if (dof_offsets[obj_index] == deal_II_numbers::invalid_unsigned_int)
+       return 0;
       
                                        // if we are in 3d, then the
                                        // only set of indices we store

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.