]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add a function face_orientation to the TriaObjects template
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jun 2007 16:52:39 +0000 (16:52 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jun 2007 16:52:39 +0000 (16:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@14754 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_objects.h

index cfc33e0b5879adbd1b8042a739a2bc54968ce038..9db759b4f0962806de7819295597ee732623905a 100644 (file)
@@ -146,7 +146,25 @@ namespace internal
                                          *  Clear all the data contained in this object.
                                          */
        void clear();
-
+       
+                                        /**
+                                         * The orientation of the
+                                         * face number <tt>face</tt>
+                                         * of the cell with number
+                                         * <tt>cell</tt>. The return
+                                         * value is <tt>true</tt>, if
+                                         * the normal vector points
+                                         * the usual way and
+                                         * <tt>false</tt> else.
+                                         *
+                                         * The result is always
+                                         * <tt>true</tt> in this
+                                         * class, but derived vlasses
+                                         * will reimplement this.
+                                         */
+       bool face_orientation(const unsigned int cell, const unsigned int face) const;
+       
+       
                                         /**
                                          * Access to user pointers.
                                          */
@@ -431,7 +449,15 @@ namespace internal
                                           */
         unsigned int memory_consumption () const;          
     };
+    
 
+    template<typename G>
+    bool TriaObjects<G>::face_orientation(const unsigned int, const unsigned int) const
+    {
+      return true;
+    }
+    
+    
     template<typename G>
     void*& TriaObjects<G>::user_pointer (const unsigned int i)
     {

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.