]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove obsolete arguments of the MappingQ1<dim>::transform_unit_to_real_cell_internal...
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 16 Mar 2001 15:47:39 +0000 (15:47 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 16 Mar 2001 15:47:39 +0000 (15:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@4239 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 5050857235bd965a00eb1fcedb6b6019fc82fb4d..345f66ca44d2fa918f7b507b49e83dbfbc4df038 100644 (file)
@@ -398,7 +398,7 @@ class MappingQ1 : public Mapping<dim>
 
   private:
                                     /**
-                                     * Transforms the point @p{p} on
+                                     * Transforms a point @p{p} on
                                      * the unit cell to the point
                                      * @p{p_real} on the real cell
                                      * @p{cell} and returns @p{p_real}.
@@ -416,18 +416,14 @@ class MappingQ1 : public Mapping<dim>
                                      * mapping support points of the
                                      * cell.
                                      *
-                                     * This additional
-                                     * @p{InternalData} argument
+                                     * This @p{InternalData} argument
                                      * avoids multiple computations
                                      * of the shape values at point
                                      * @p{p} and especially multiple
                                      * computations of the mapping
                                      * support points.
                                      */
-    virtual Point<dim> transform_unit_to_real_cell_internal (
-      const typename Triangulation<dim>::cell_iterator cell,
-      const Point<dim> &p,
-      const InternalData &m_data) const;
+    virtual Point<dim> transform_unit_to_real_cell_internal (const InternalData &m_data) const;
 
                                     /**
                                      * Returns an @p{InternalData}
index 001a2a5450db7d15b19ced09b8fc3f7d6d92664f..f935479361da8fed859015ca4b7b6e1166d5c990 100644 (file)
@@ -846,15 +846,12 @@ Point<dim> MappingQ1<dim>::transform_unit_to_real_cell (
 
   compute_shapes(std::vector<Point<dim> > (1, p), *mdata);
 
-  return transform_unit_to_real_cell_internal(cell, p, *mdata);
+  return transform_unit_to_real_cell_internal(*mdata);
 }
 
 
-// TODO:  remove obsolete arguments.
 template <int dim>
 Point<dim> MappingQ1<dim>::transform_unit_to_real_cell_internal (
-  const typename Triangulation<dim>::cell_iterator cell,
-  const Point<dim> &p,
   const InternalData &data) const
 {
   const unsigned int n_mapping_points=data.mapping_support_points.size();
@@ -903,7 +900,7 @@ Point<dim> MappingQ1<dim>::transform_real_to_unit_cell (
   compute_shapes(std::vector<Point<dim> > (1, p_unit), *mdata);
   
                                   // f(x)
-  Point<dim> p_real(transform_unit_to_real_cell_internal(cell, p_unit, *mdata));
+  Point<dim> p_real(transform_unit_to_real_cell_internal(*mdata));
   Point<dim> f = p_real-p;
 
   const double eps=1e-15*cell->diameter();
@@ -936,7 +933,7 @@ Point<dim> MappingQ1<dim>::transform_real_to_unit_cell (
       compute_shapes(std::vector<Point<dim> > (1, p_unit), *mdata);
       
                                       // f(x)
-      p_real=transform_unit_to_real_cell_internal(cell, p_unit, *mdata);
+      p_real=transform_unit_to_real_cell_internal(*mdata);
       f = p_real-p;
     }
 

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.