]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Get rid of FEValues::get_cell and get_face.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jan 2003 19:24:49 +0000 (19:24 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jan 2003 19:24:49 +0000 (19:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@6932 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h
deal.II/deal.II/source/fe/fe_values.cc
deal.II/doc/news/2002/c-3-4.html

index 4bffccd43974d7600f6eff5707c6db7f191f377f..f4203116e80c220c8b301b6c41896ed6a4f425c0 100644 (file)
@@ -719,11 +719,6 @@ class FEValuesBase : protected FEValuesData<dim>
                                      */
     const std::vector<double> & get_JxW_values () const;
     
-                                    /**
-                                     * Return the present cell.
-                                     */
-    const typename DoFHandler<dim>::cell_iterator & get_cell() const;
-
                                     /**
                                      * Constant reference to the
                                      * selected mapping object.
@@ -999,12 +994,6 @@ class FEFaceValuesBase : public FEValuesBase<dim>
                                      */
     const std::vector<Tensor<1,dim> > & get_boundary_forms () const;
 
-                                    /**
-                                     * Return the present
-                                     * face.
-                                     */
-    typename DoFHandler<dim>::face_iterator get_face() const;
-
                                     /**
                                      * Return a reference to the copy
                                      * of the quadrature formula
@@ -1025,15 +1014,6 @@ class FEFaceValuesBase : public FEValuesBase<dim>
                                      * formula here.
                                      */
     const Quadrature<dim-1> quadrature;
-
-                                    /**
-                                     * Stores the face or subface,
-                                     * resp., that was selected the
-                                     * last time the @p{reinit}
-                                     * function was called. Is used
-                                     * by the @p{get_face} function.
-                                     */
-    typename DoFHandler<dim>::face_iterator present_face;
 };
 
 
@@ -1453,16 +1433,6 @@ FEValuesBase<dim>::shape_2nd_derivative_component (const unsigned int i,
 
 
 
-template <int dim>
-inline
-const typename DoFHandler<dim>::cell_iterator &
-FEValuesBase<dim>::get_cell() const
-{
-  return present_cell;
-}
-
-
-
 template <int dim>
 inline
 const FiniteElement<dim> & 
@@ -1507,17 +1477,6 @@ FEFaceValuesBase<dim>::normal_vector (const unsigned int i) const
 }
 
 
-template <int dim>
-inline
-typename DoFHandler<dim>::face_iterator
-FEFaceValuesBase<dim>::get_face() const 
-{
-  return present_face;
-}
-
-
-
-
 template <int dim>
 const Quadrature<dim-1> &
 FEFaceValuesBase<dim>::get_quadrature () const 
index 3078dafb317d317c920e984e10a8ff1c6017d02c..ade7867c254f02fe9f0bdad77422e7387b8d0fdf 100644 (file)
@@ -666,8 +666,7 @@ unsigned int
 FEFaceValuesBase<dim>::memory_consumption () const
 {
   return (FEValuesBase<dim>::memory_consumption () +
-         MemoryConsumption::memory_consumption (quadrature) +
-         MemoryConsumption::memory_consumption (present_face));
+         MemoryConsumption::memory_consumption (quadrature));
 }
 
 
@@ -740,7 +739,6 @@ void FEFaceValues<dim>::reinit (const typename DoFHandler<dim>::cell_iterator &c
          typename FEValuesBase<dim>::ExcFEDontMatch());
 
   this->present_cell = cell;
-  this->present_face = cell->face(face_no);
 
   this->get_mapping().fill_fe_face_values(cell, face_no,
                                          this->quadrature,
@@ -838,7 +836,6 @@ void FESubfaceValues<dim>::reinit (const typename DoFHandler<dim>::cell_iterator
          ExcIndexRange (subface_no, 0, GeometryInfo<dim>::subfaces_per_face));
   
   this->present_cell  = cell;
-  this->present_face  = cell->face(face_no);
 
   this->get_mapping().fill_fe_subface_values(cell, face_no, subface_no,
                                             this->quadrature,
index e7cf96d863e93e37c034f4c35b9135dcac1cc0e3..0cfef36178b2fdcdecc1684214487638f46b7fda 100644 (file)
@@ -599,6 +599,16 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 <h3>deal.II</h3>
 
 <ol>
+  <li> <p> 
+       Changed: The <code class="member">FEValues::get_cell</code> and
+       <code class="member">FEValues::get_face</code> functions have
+       been removed, since they limited our inability to use this
+       class for other types of DoFHandlers, for example future
+       extensions for hp elements.
+       <br>
+       (WB 2003/01/17)
+       </p>
+
   <li> <p> 
        New: The DoF accessor classes now have a function <code
        class="member">get_fe()</code> that returns a reference to the finite

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.