*/
unsigned int n_active_cells (const unsigned int level) const;
+ /**
+ * Return total number of faces,
+ * used or not. In 2d, the result
+ * equals n_raw_lines(), while in 3d it
+ * equals n_raw_quads().
+ */
+ unsigned int n_raw_faces () const;
+
/**
* Return total number of used faces,
* active or not. In 2D, the result
}
+template <int dim, int spacedim>
+unsigned int Triangulation<dim, spacedim>::n_raw_faces () const
+{
+ switch (dim)
+ {
+ case 2:
+ return n_raw_lines();
+ case 3:
+ return n_raw_quads();
+ default:
+ Assert (false, ExcNotImplemented());
+ }
+ return 0;
+}
+
+
template <int dim, int spacedim>
unsigned int Triangulation<dim, spacedim>::n_active_faces () const
{
<h3>deal.II</h3>
<ol>
+ <li>
+ <p>
+ New: The new Triangulation::n_raw_faces() function forwards
+ to Triangulation::n_raw_lines() in 2d and
+ Triangulation::n_raw_quads() in 3d.
+ <br>
+ (Tobias Leicht, RH 2009/06/12)
+ </p>
+ </li>
+
<li>
<p>
New: There is now a new DataOutFaces::build_patches function which
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