]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make get_face_orientation a function in 1d and 2d as well, though they should just...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2003 14:46:34 +0000 (14:46 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2003 14:46:34 +0000 (14:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@8070 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_accessor.h
deal.II/deal.II/source/grid/tria_accessor.cc

index 40bcdb03e5bb0fb0925db63a0b94bb48a3bfabde..9249aec2ac273beb0dfb40478781b40e3469409a 100644 (file)
@@ -675,6 +675,22 @@ class TriaObjectAccessor :  public TriaAccessor<dim>
                                      */
     unsigned int number_of_children () const;
 
+                                     /**
+                                      * Enquire some information about
+                                      * whether the face with the
+                                      * given number is in standard
+                                      * orientation or not. This
+                                      * information is only useful
+                                      * (and available) in 3d, see the
+                                      * documentation of the
+                                      * respective class. For all
+                                      * other dimensions, this
+                                      * function should not be called
+                                      * and triggers and assertion if
+                                      * done so.
+                                      */
+    bool get_face_orientation (const unsigned int face) const;
+    
   private:
                                     /**
                                      *  Copy operator. This is normally
@@ -1118,6 +1134,22 @@ class TriaObjectAccessor<1, dim> :  public TriaAccessor<dim>
                                      */
     unsigned int number_of_children () const;
     
+                                     /**
+                                      * Enquire some information about
+                                      * whether the face with the
+                                      * given number is in standard
+                                      * orientation or not. This
+                                      * information is only useful
+                                      * (and available) in 3d, see the
+                                      * documentation of the
+                                      * respective class. For all
+                                      * other dimensions, this
+                                      * function should not be called
+                                      * and triggers and assertion if
+                                      * done so.
+                                      */
+    bool get_face_orientation (const unsigned int face) const;
+
   private:
                                     /**
                                      *  Copy operator. This is normally
@@ -1583,6 +1615,22 @@ class TriaObjectAccessor<2, dim> :  public TriaAccessor<dim>
                                      */
     unsigned int number_of_children () const;
 
+                                     /**
+                                      * Enquire some information about
+                                      * whether the face with the
+                                      * given number is in standard
+                                      * orientation or not. This
+                                      * information is only useful
+                                      * (and available) in 3d, see the
+                                      * documentation of the
+                                      * respective class. For all
+                                      * other dimensions, this
+                                      * function should not be called
+                                      * and triggers and assertion if
+                                      * done so.
+                                      */
+    bool get_face_orientation (const unsigned int face) const;
+
   private:
                                     /**
                                      *  Copy operator. This is
index 8f25055ed3fb40e583b9452ca237b0cd6beee018..fdd4a0e4360b9cf2c3c7ad8f0b7031634a33d433 100644 (file)
@@ -249,6 +249,16 @@ unsigned int TriaObjectAccessor<1, dim>::number_of_children () const
 }
 
 
+
+template <int dim>
+bool
+TriaObjectAccessor<1,dim>::get_face_orientation (const unsigned int) const
+{
+  Assert (false, ExcInternalError());
+  return true;
+}
+
+
 /*------------------------ Functions: QuadAccessor ---------------------------*/
 
 template <int dim>
@@ -573,6 +583,7 @@ double TriaObjectAccessor<2, 2>::measure () const
          x[0]*y[1]/2.0-x[3]*y[2]/2.0+x[1]*y[2]/2.0-x[2]*y[1]/2.0);
 }
 
+
 #endif
 
 
@@ -666,6 +677,17 @@ unsigned int TriaObjectAccessor<2, dim>::number_of_children () const
 }
 
 
+
+template <int dim>
+bool
+TriaObjectAccessor<2,dim>::get_face_orientation (const unsigned int) const
+{
+  Assert (false, ExcInternalError());
+  return true;
+}
+
+
+
 /*------------------------ Functions: TriaObjectAccessor ---------------------------*/
 
 template <int dim>

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.