]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simply return 0 in n_active_fe_indices for objects that are unused
authorkayser-herold <kayser-herold@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Jul 2006 19:36:55 +0000 (19:36 +0000)
committerkayser-herold <kayser-herold@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Jul 2006 19:36:55 +0000 (19:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@13456 0785d39b-7218-0410-832d-ea1e28bc413d

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

index c3bf9c0ac1172d828d5ebe048c6a73167c419e6b..39ab7eb8c4b050fcfa072a78d69e3126ec00b756 100644 (file)
@@ -148,10 +148,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 1d, then the
                                        // only set of indices we store
@@ -385,10 +383,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;
       
                                       // we are in higher space
                                       // dimensions, so there may
@@ -687,10 +683,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;
       
                                       // we are in higher space
                                       // dimensions, so there may
@@ -1192,10 +1186,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;
       
                                       // we are in higher space
                                       // dimensions, so there may

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.