]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make add_{line,quad}_support_points protected to allow overloading
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Mar 2001 15:28:02 +0000 (15:28 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Mar 2001 15:28:02 +0000 (15:28 +0000)
them in derived classes.

git-svn-id: https://svn.dealii.org/trunk@4286 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/mapping_q.h

index ed67dfbf121d5f18a0c4b0e43cd12d563f6f688d..62964d8d73d63a40a97f89df5f1a0ba0786d6030 100644 (file)
@@ -46,7 +46,7 @@ class MappingQ : public MappingQ1<dim>
                                      * degree of mapping polynomials
                                      * on boundary cells.
                                      */
-    MappingQ (unsigned int p);
+    MappingQ (const unsigned int p);
 
                                     /**
                                      * Destructor.
@@ -179,6 +179,60 @@ class MappingQ : public MappingQ1<dim>
        MappingQ1<dim>::InternalData mapping_q1_data;
     };
 
+                                    /**
+                                     * For @p{dim=2,3}. Append
+                                     * (appends) the support points
+                                     * of all shape functions located
+                                     * on bounding lines to the
+                                     * vector @p{a}. Points located
+                                     * on the line but on vertices
+                                     * are not included.
+                                     *
+                                     * Needed by the
+                                     * @p{compute_support_points_simple(laplace)}
+                                     * functions. For @p{dim=1} this
+                                     * function is empty.
+                                     *
+                                     * This function is made virtual
+                                     * in order to allow derived
+                                     * classes to choose shape
+                                     * function support points
+                                     * differently than the present
+                                     * class, which chooses the
+                                     * points as interpolation points
+                                     * on the boundary.
+                                     */
+    virtual void
+    add_line_support_points (const Triangulation<dim>::cell_iterator &cell,
+                            std::vector<Point<dim> > &a) const;
+
+                                    /**
+                                     * For @p{dim=3}. Append the
+                                     * support points of all shape
+                                     * functions located on bounding
+                                     * faces (quads in 3d) to the
+                                     * vector @p{a}. Points located
+                                     * on the line but on vertices
+                                     * are not included.
+                                     *
+                                     * Needed by the
+                                     * @p{compute_support_points_laplace}
+                                     * function. For @p{dim=1} and 2
+                                     * this function is empty.
+                                     *
+                                     * This function is made virtual
+                                     * in order to allow derived
+                                     * classes to choose shape
+                                     * function support points
+                                     * differently than the present
+                                     * class, which chooses the
+                                     * points as interpolation points
+                                     * on the boundary.
+                                     */
+    virtual void
+    add_quad_support_points(const typename Triangulation<dim>::cell_iterator &cell,
+                           std::vector<Point<dim> > &a) const;
+    
   private:
     
                                     /**
@@ -315,61 +369,7 @@ class MappingQ : public MappingQ1<dim>
                                      */
     void compute_support_points_simple(
       const typename Triangulation<dim>::cell_iterator &cell,
-      std::vector<Point<dim> > &a) const;
-    
-                                    /**
-                                     * For @p{dim=2,3}. Append
-                                     * (appends) the support points
-                                     * of all shape functions located
-                                     * on bounding lines to the
-                                     * vector @p{a}. Points located
-                                     * on the line but on vertices
-                                     * are not included.
-                                     *
-                                     * Needed by the
-                                     * @p{compute_support_points_simple(laplace)}
-                                     * functions. For @p{dim=1} this
-                                     * function is empty.
-                                     *
-                                     * This function is made virtual
-                                     * in order to allow derived
-                                     * classes to choose shape
-                                     * function support points
-                                     * differently than the present
-                                     * class, which chooses the
-                                     * points as interpolation points
-                                     * on the boundary.
-                                     */
-    virtual void
-    add_line_support_points (const Triangulation<dim>::cell_iterator &cell,
-                            std::vector<Point<dim> > &a) const;
-
-                                    /**
-                                     * For @p{dim=3}. Append the
-                                     * support points of all shape
-                                     * functions located on bounding
-                                     * faces (quads in 3d) to the
-                                     * vector @p{a}. Points located
-                                     * on the line but on vertices
-                                     * are not included.
-                                     *
-                                     * Needed by the
-                                     * @p{compute_support_points_laplace}
-                                     * function. For @p{dim=1} and 2
-                                     * this function is empty.
-                                     *
-                                     * This function is made virtual
-                                     * in order to allow derived
-                                     * classes to choose shape
-                                     * function support points
-                                     * differently than the present
-                                     * class, which chooses the
-                                     * points as interpolation points
-                                     * on the boundary.
-                                     */
-    virtual void
-    add_quad_support_points(const typename Triangulation<dim>::cell_iterator &cell,
-                           std::vector<Point<dim> > &a) const;
+      std::vector<Point<dim> > &a) const;    
     
                                     /**
                                      * For @p{dim=2} and 3. Simple
@@ -461,8 +461,6 @@ class MappingQ : public MappingQ1<dim>
                                      */
     std::vector<unsigned int> renumber;
 
-  private:
-
                                     /**
                                      * If this flag is set @p{true}
                                      * then @p{MappingQ} is used on

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.