]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove the FE_DGPNonparametric::degree variable. 3485/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 06:20:51 +0000 (23:20 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 06:20:51 +0000 (23:20 -0700)
It shadows the variable of same name in the base class, and always has the
same value.

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

index c40ddceb5fbdefb78dfc57610cbd9e092154a63e..6c7e535bcb57285f0f323ae6f288536b1a7a4003 100644 (file)
@@ -596,11 +596,6 @@ private:
   std::vector<unsigned int>
   get_dpo_vector (const unsigned int degree);
 
-  /**
-   * Degree of the polynomials.
-   */
-  const unsigned int degree;
-
   /**
    * Pointer to an object representing the polynomial space used here.
    */
index 70dbf847914f0b38738144b53ba39e46d264df17..58a93dc7f675ec0a95b1bd59c8ec456080f4a7db 100644 (file)
@@ -38,7 +38,6 @@ FE_DGPNonparametric<dim,spacedim>::FE_DGPNonparametric (const unsigned int degre
     std::vector<ComponentMask>(
       FiniteElementData<dim>(get_dpo_vector(degree),1, degree).dofs_per_cell,
       std::vector<bool>(1,true))),
-  degree(degree),
   polynomial_space (Polynomials::Legendre::generate_complete_basis(degree))
 {
   const unsigned int n_dofs = this->dofs_per_cell;
@@ -107,7 +106,7 @@ FE_DGPNonparametric<dim,spacedim>::get_name () const
   std::ostringstream namebuf;
   namebuf << "FE_DGPNonparametric<"
           << Utilities::dim_string(dim,spacedim)
-          << ">(" << degree << ")";
+          << ">(" << this->degree << ")";
 
   return namebuf.str();
 }
@@ -585,7 +584,7 @@ template <int dim, int spacedim>
 unsigned int
 FE_DGPNonparametric<dim,spacedim>::get_degree () const
 {
-  return degree;
+  return this->degree;
 }
 
 

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.