virtual unsigned int element_multiplicity (const unsigned int index) const;
/**
- * This function returns
- * @p{true}, if the shape
- * function @p{shape_index} has
- * non-zero values on the face
- * @p{face_index}. For the lowest
- * order Nedelec elements, this
- * is actually the case for the
- * one on which the shape
- * function is defined and all
- * neighboring ones.
+ * Check whether a shape function
+ * is non-zero on a face.
+ *
+ * Right now, this is only
+ * implemented for RT0 in
+ * 1D. Otherwise, returns always
+ * @p{true}.
*
* Implementation of the
* interface in
Assert (face_index < GeometryInfo<dim>::faces_per_cell,
ExcIndexRange (face_index, 0, GeometryInfo<dim>::faces_per_cell));
+ // Return computed values if we
+ // know them easily. Otherwise, it
+ // is always safe to return true.
switch (degree)
{
case 0:
= { 2, 3, 0, 1};
return (face_index != opposite_faces[shape_index]);
- };
+ }
- default: Assert (false, ExcNotImplemented());
+ default:
+ return true;
};
};
default: // other degree
- Assert (false, ExcNotImplemented());
+ return true;
};
return true;