]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add default implementation of has_support_on_face
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 20 Oct 2005 21:46:04 +0000 (21:46 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 20 Oct 2005 21:46:04 +0000 (21:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@11638 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe.h
deal.II/deal.II/source/fe/fe.cc

index 440a9ab2ab82952357c6072808b09fc0d1bb594d..1d33fe5d2978382b89bb2df8bd3cabda84e60152 100644 (file)
@@ -561,16 +561,24 @@ class FiniteElement : public Subscriptor,
                                                     const Point<dim>   &p,
                                                     const unsigned int component) const;
                                     /**
-                                     * Check for non-zero values on a face.
+                                     * Check for non-zero values on a
+                                     * face in order to optimize out
+                                     * matrix elements.
                                      *
                                      * This function returns
                                      * @p true, if the shape
                                      * function @p shape_index has
                                      * non-zero values on the face
                                      * @p face_index.
+                                     *
+                                     * A default implementation is
+                                     * provided in this basis class
+                                     * which always returns @p
+                                     * true. This is the safe way to
+                                     * go.
                                      */
     virtual bool has_support_on_face (const unsigned int shape_index,
-                                     const unsigned int face_index) const = 0;
+                                     const unsigned int face_index) const;
     
                                     //@}
                                     /**
index 30bcebe559914c99c00bd85ac20362da481aac1d..5572c0fa8939a24290d3cf96d672aa96d80cbe13 100644 (file)
@@ -558,6 +558,15 @@ FiniteElement<dim>::unit_face_support_point (const unsigned index) const
 }
 
 
+template <int dim>
+bool
+FiniteElement<dim>::has_support_on_face (
+  const unsigned int,
+  const unsigned int) const
+{
+  return true;
+}
+
 
 template <int dim>
 void

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.