]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move the smart pointer to the finite element into the right place, i.e. the base...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Sep 1998 23:09:43 +0000 (23:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Sep 1998 23:09:43 +0000 (23:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@584 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h

index cf56af6e8c6045f5339026cc6c9401ea88d61b17..6f319388d3a3aec819551c0261cb4dc5fb265eb9 100644 (file)
@@ -223,7 +223,8 @@ class FEValuesBase {
                  const unsigned int n_dofs,
                  const unsigned int n_transform_functions,
                  const unsigned int n_values_array,
-                 const UpdateFlags update_flags);
+                 const UpdateFlags         update_flags,
+                 const FiniteElement<dim> &fe);
     
 
                                     /**
@@ -551,6 +552,11 @@ class FEValuesBase {
                                      * safer.
                                      */
     DoFHandler<dim>::cell_iterator present_cell;
+
+                                    /**
+                                     * Store the finite element for later use.
+                                     */
+    SmartPointer<const FiniteElement<dim> > fe;
 };
 
 
@@ -621,10 +627,6 @@ class FEValues : public FEValuesBase<dim> {
                 const Boundary<dim> &);
 
   private:
-                                    /**
-                                     * Store the finite element for later use.
-                                     */
-  SmartPointer<const FiniteElement<dim> > fe;
                                     /**
                                      * Store the gradients of the shape
                                      * functions at the quadrature points on
@@ -749,7 +751,8 @@ class FEFaceValuesBase : public FEValuesBase<dim> {
                      const unsigned int n_dofs,
                      const unsigned int n_transform_functions,
                      const unsigned int n_faces_or_subfaces,
-                     const UpdateFlags update_flags);
+                     const UpdateFlags         update_flags,
+                     const FiniteElement<dim> &fe);
 
                                     /**
                                      * Return the outward normal vector to
@@ -894,11 +897,6 @@ class FEFaceValues : public FEFaceValuesBase<dim> {
     void reinit (const typename DoFHandler<dim>::cell_iterator &cell,
                 const unsigned int                    face_no,
                 const Boundary<dim>                  &boundary);
-private:
-                                    /**
-                                     * Store the finite element for later use.
-                                     */
-  SmartPointer<const FiniteElement<dim> > fe;
 };
 
 
@@ -1055,11 +1053,6 @@ class FESubfaceValues : public FEFaceValuesBase<dim> {
                                      * Exception
                                      */
     DeclException0 (ExcReinitCalledWithBoundaryFace);
-private:
-                                    /**
-                                     * Store the finite element for later use.
-                                     */
-  SmartPointer<const FiniteElement<dim> > fe;
 };
 
 

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.