unsigned int n_levels () const;
/**
- * Return the number of levels in use. This function is equivalent to
- * n_levels() for a serial Triangulation, but gives the maximum of
- * n_levels() over all processors for a parallel::distributed::Triangulation
- * and therefore can be larger than n_levels().
+ * Return the number of levels in use. This function is equivalent
+ * to n_levels() for a serial Triangulation, but gives the maximum
+ * of n_levels() over all processors for a
+ * parallel::distributed::Triangulation and therefore can be larger
+ * than n_levels().
*/
- virtual unsigned int n_global_levels () const;
+ virtual
+ unsigned int n_global_levels () const;
/**
- * Return the total number of vertices. Some of them may not be
- * used, which usually happens upon coarsening of a triangulation
- * when some vertices are discarded, but we do not want to renumber
- * the remaining ones, leading to holes in the numbers of used
- * vertices. You can get the number of used vertices using @p
- * n_used_vertices function.
+ * Return true if the triangulation has hanging nodes.
+ *
+ * The function is made virtual since the result can be interpreted in different
+ * ways, depending on whether the triangulation lives only on a single processor,
+ * or may be distributed as done in the parallel::distributed::Triangulation
+ * class (see there for a description of what the function is supposed to do in the
+ * parallel context).
+ */
+ virtual
+ bool has_hanging_nodes() const;
+
+ /**
+ * Return the total number of
+ * vertices. Some of them may
+ * not be used, which usually
+ * happens upon coarsening of a
+ * triangulation when some
+ * vertices are discarded, but we
+ * do not want to renumber the
+ * remaining ones, leading to
+ * holes in the numbers of used
+ * vertices. You can get the
+ * number of used vertices using
+ * @p n_used_vertices function.
*/
unsigned int n_vertices () const;
/*@{*/
/**
- * Total number of lines, used or
- * unused.
+ * Total number of lines, used or unused.
- *
- * @note This function really exports internal information about the
- * triangulation. It shouldn't be used in applications. The function
- * is only part of the public interface of this class because it is
- * used in some of the other classes that build very closely on it
- * (in particular, the DoFHandler class).
+ *
+ * @note This function really
+ * exports internal information
+ * about the triangulation. It
+ * shouldn't be used in
+ * applications. The function is
+ * only part of the public
+ * interface of this class
+ * because it is used in some of
+ * the other classes that build
+ * very closely on it (in
+ * particular, the DoFHandler
+ * class).
*/
unsigned int n_raw_lines () const;