]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the new ctor for FE_Simplex(DG)P.
authorDavid Wells <drwells@email.unc.edu>
Sat, 3 Jul 2021 14:14:15 +0000 (10:14 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 3 Jul 2021 14:14:15 +0000 (10:14 -0400)
include/deal.II/fe/fe_simplex_p.h
source/fe/fe_simplex_p.cc

index 85c05da306e3ad456ddbd5c4bb413d68f2494476..e99e7b7a98961aa9749de7edea15cb915bfe0153 100644 (file)
@@ -35,13 +35,6 @@ template <int dim, int spacedim = dim>
 class FE_SimplexPoly : public dealii::FE_Poly<dim, spacedim>
 {
 public:
-  /**
-   * Constructor.
-   */
-  FE_SimplexPoly(const unsigned int                                degree,
-                 const std::vector<unsigned int> &                 dpo_vector,
-                 const typename FiniteElementData<dim>::Conformity conformity);
-
   /**
    * Constructor.
    */
index 9dde03ee7d7519ebaa744b4b34b97885efdad8bc..a41434af2952d5cb94f03311c4b688a5d6378294 100644 (file)
@@ -314,26 +314,6 @@ namespace
 
 
 
-template <int dim, int spacedim>
-FE_SimplexPoly<dim, spacedim>::FE_SimplexPoly(
-  const unsigned int                                degree,
-  const std::vector<unsigned int> &                 dpo_vector,
-  const typename FiniteElementData<dim>::Conformity conformity)
-  : FE_SimplexPoly(BarycentricPolynomials<dim>::get_fe_p_basis(degree),
-                   FiniteElementData<dim>(dpo_vector,
-                                          dim == 2 ?
-                                            ReferenceCells::Triangle :
-                                            ReferenceCells::Tetrahedron,
-                                          1,
-                                          degree,
-                                          conformity),
-                   unit_support_points_fe_p<dim>(degree),
-                   unit_face_support_points_fe_p<dim>(degree, conformity),
-                   constraints_fe_p<dim>(degree))
-{}
-
-
-
 template <int dim, int spacedim>
 FE_SimplexPoly<dim, spacedim>::FE_SimplexPoly(
   const BarycentricPolynomials<dim>              polynomials,
@@ -627,9 +607,17 @@ FE_SimplexPoly<dim, spacedim>::
 
 template <int dim, int spacedim>
 FE_SimplexP<dim, spacedim>::FE_SimplexP(const unsigned int degree)
-  : FE_SimplexPoly<dim, spacedim>(degree,
-                                  get_dpo_vector_fe_p(dim, degree),
-                                  FiniteElementData<dim>::H1)
+  : FE_SimplexPoly<dim, spacedim>(
+      BarycentricPolynomials<dim>::get_fe_p_basis(degree),
+      FiniteElementData<dim>(get_dpo_vector_fe_p(dim, degree),
+                             dim == 2 ? ReferenceCells::Triangle :
+                                        ReferenceCells::Tetrahedron,
+                             1,
+                             degree,
+                             FiniteElementData<dim>::H1),
+      unit_support_points_fe_p<dim>(degree),
+      unit_face_support_points_fe_p<dim>(degree, FiniteElementData<dim>::H1),
+      constraints_fe_p<dim>(degree))
 {}
 
 
@@ -847,9 +835,17 @@ FE_SimplexP<dim, spacedim>::hp_line_dof_identities(
 
 template <int dim, int spacedim>
 FE_SimplexDGP<dim, spacedim>::FE_SimplexDGP(const unsigned int degree)
-  : FE_SimplexPoly<dim, spacedim>(degree,
-                                  get_dpo_vector_fe_dgp(dim, degree),
-                                  FiniteElementData<dim>::L2)
+  : FE_SimplexPoly<dim, spacedim>(
+      BarycentricPolynomials<dim>::get_fe_p_basis(degree),
+      FiniteElementData<dim>(get_dpo_vector_fe_dgp(dim, degree),
+                             dim == 2 ? ReferenceCells::Triangle :
+                                        ReferenceCells::Tetrahedron,
+                             1,
+                             degree,
+                             FiniteElementData<dim>::L2),
+      unit_support_points_fe_p<dim>(degree),
+      unit_face_support_points_fe_p<dim>(degree, FiniteElementData<dim>::H1),
+      constraints_fe_p<dim>(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.