]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Introduce Triangulation<dim>::n_raw_faces() forwarding to n_raw_lines() in 2d and...
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 12 Jun 2009 05:03:35 +0000 (05:03 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 12 Jun 2009 05:03:35 +0000 (05:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@18924 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria.h
deal.II/deal.II/source/grid/tria.cc
deal.II/doc/news/changes.h

index 499c592d15970a5d4d6288e99285ddbb269ffbec..462645d524ef3e53a8a579ff88817ae8056926ae 100644 (file)
@@ -2787,6 +2787,14 @@ class Triangulation : public Subscriptor
                                      */
     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
index f16a9ce32f550cea8123d60ca67310d785b769e9..188b98e8d52e082272b791fabfbae209919e709d 100644 (file)
@@ -11996,6 +11996,22 @@ unsigned int Triangulation<dim, spacedim>::n_faces () const
 }
 
 
+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
 {
index 1c4a518e8e1a84c3abd093b47b45b8181830b403..dc1100df07c435be660549ef5c0b3d0e28112576 100644 (file)
@@ -135,6 +135,16 @@ inconvenience this causes.
 <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


Typeset in Trocchi and Trocchi Bold Sans Serif.