]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove member variables now no longer necessary.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 13 Sep 2015 18:57:30 +0000 (13:57 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 Sep 2015 19:45:29 +0000 (14:45 -0500)
include/deal.II/fe/mapping_q.h
source/fe/mapping_q.cc

index 81f16ea5bf4180bcf2c5dfb9297d8d60d01e38ef..d6695f5fb7a6c1c00f2e13aa14dbd2d73f5839e2 100644 (file)
@@ -263,23 +263,6 @@ protected:
 
 protected:
 
-  /**
-   * Exception.
-   */
-  DeclException1 (ExcLaplaceVectorNotSet,
-                  int,
-                  << "laplace_vector not set for degree=" << arg1 << ".");
-
-  /**
-   * Number of inner mapping shape functions.
-   */
-  const unsigned int n_inner;
-
-  /**
-   * Number of mapping shape functions on the boundary.
-   */
-  const unsigned int n_outer;
-
   /**
    * If this flag is set @p true then @p MappingQ is used on all cells, not
    * only on boundary cells.
index 6ac2a071d5e146ea8590d52d6b148b2c3e9aec9d..cb7e706b7fd81e8bef83d782beb2ea0d2b112728 100644 (file)
@@ -57,11 +57,6 @@ MappingQ<dim,spacedim>::MappingQ (const unsigned int degree,
                                   const bool use_mapping_q_on_all_cells)
   :
   MappingQ1<dim,spacedim>(degree),
-  n_inner(Utilities::fixed_power<dim>(degree-1)),
-  n_outer((dim==1) ? 2 :
-          ((dim==2) ?
-           4+4*(degree-1) :
-           8+12*(degree-1)+6*(degree-1)*(degree-1))),
 
   // see whether we want to use *this* mapping objects on *all* cells,
   // or defer to an explicit Q1 mapping on interior cells. if
@@ -76,10 +71,7 @@ MappingQ<dim,spacedim>::MappingQ (const unsigned int degree,
   // create a Q1 mapping for use on interior cells (if necessary)
   // or to create a good initial guess in transform_real_to_unit_cell()
   q1_mapping (new MappingQ1<dim,spacedim>())
-{
-  Assert(n_inner+n_outer==Utilities::fixed_power<dim>(degree+1),
-         ExcInternalError());
-}
+{}
 
 
 
@@ -87,16 +79,11 @@ template<int dim, int spacedim>
 MappingQ<dim,spacedim>::MappingQ (const MappingQ<dim,spacedim> &mapping)
   :
   MappingQ1<dim,spacedim>(mapping.get_degree()),
-  n_inner(mapping.n_inner),
-  n_outer(mapping.n_outer),
   use_mapping_q_on_all_cells (mapping.use_mapping_q_on_all_cells),
   // clone the Q1 mapping for use on interior cells (if necessary)
   // or to create a good initial guess in transform_real_to_unit_cell()
   q1_mapping (dynamic_cast<MappingQ1<dim,spacedim>*>(mapping.q1_mapping->clone()))
-{
-  Assert(n_inner+n_outer==Utilities::fixed_power<dim>(this->polynomial_degree+1),
-         ExcInternalError());
-}
+{}
 
 
 

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.