* 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
// 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
// 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