]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Aug 2013 18:14:12 +0000 (18:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Aug 2013 18:14:12 +0000 (18:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@30538 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/hp/dof_levels.h

index 29d328a8bcadd1969941c1d6b9a130e076e1b76c..bf59dc830e313fcaee5f6c18f27b440fa5eeb72c 100644 (file)
@@ -258,16 +258,8 @@ namespace internal
     DoFLevel<dim>::
     active_fe_index (const unsigned int obj_index) const
     {
-      Assert (obj_index < dof_offsets.size(),
-              ExcIndexRange (obj_index, 0, dof_offsets.size()));
-
-      // make sure we are on an
-      // object for which DoFs have
-      // been allocated at all
-      Assert (dof_offsets[obj_index] != numbers::invalid_dof_index,
-              ExcMessage ("You are trying to access degree of freedom "
-                          "information for an object on which no such "
-                          "information is available"));
+      Assert (obj_index < active_fe_indices.size(),
+              ExcIndexRange (obj_index, 0, active_fe_indices.size()));
 
       return active_fe_indices[obj_index];
     }

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.