]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove get_default_mapping function. Use StaticMappingQ1 instead.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 21 Feb 2006 12:53:52 +0000 (12:53 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 21 Feb 2006 12:53:52 +0000 (12:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@12437 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b9cf5a3d2b720b489a9640b1e7d2626044ede926..e4326a91e23c28db2221ea204ab936300a0f4d5a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1595,15 +1595,6 @@ class FEValuesBase : protected FEValuesData<dim>, public Subscriptor
                                      */
     UpdateFlags compute_update_flags (const UpdateFlags update_flags) const;
 
-                                    /**
-                                     * Returns reference to default
-                                     * MappingQ1 object. Needed
-                                     * by constructors of derived
-                                     * classes that uses
-                                     * MappingQ1 implicitly.
-                                     */
-    static const Mapping<dim> &get_default_mapping();
-
   private:
                                      /**
                                       * Copy constructor. Since
index 3f1732986ed8195443bb41cd951a056d3680f717..76700988cd08aa4d5d57ab7d168cdb1d628ad117 100644 (file)
@@ -1047,15 +1047,6 @@ FEValuesBase<dim>::compute_update_flags (const UpdateFlags update_flags) const
 
 
 
-template <int dim>
-const Mapping<dim> &
-FEValuesBase<dim>::get_default_mapping ()
-{
-  static const MappingQ1<dim> mapping_q1;
-  return mapping_q1;
-}
-
-
 /*------------------------------- FEValues -------------------------------*/
 
 
@@ -1086,7 +1077,7 @@ FEValues<dim>::FEValues (const FiniteElement<dim> &fe,
                FEValuesBase<dim> (q.n_quadrature_points,
                                   fe.dofs_per_cell,
                                   update_default,
-                                  this->get_default_mapping(),
+                                  StaticMappingQ1<dim>::mapping,
                                   fe),
   quadrature (q)
 {
@@ -1350,7 +1341,7 @@ FEFaceValues<dim>::FEFaceValues (const FiniteElement<dim> &fe,
                FEFaceValuesBase<dim> (quadrature.n_quadrature_points,
                                       fe.dofs_per_cell,
                                       update_flags,
-                                      this->get_default_mapping(),
+                                      StaticMappingQ1<dim>::mapping,
                                       fe, quadrature)
 {
   Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
@@ -1558,7 +1549,7 @@ FESubfaceValues<dim>::FESubfaceValues (const FiniteElement<dim> &fe,
                FEFaceValuesBase<dim> (quadrature.n_quadrature_points,
                                       fe.dofs_per_cell,
                                       update_flags,
-                                      this->get_default_mapping(),
+                                      StaticMappingQ1<dim>::mapping,
                                       fe, quadrature)
 {
   Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));

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.