]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #10780 from peterrum/fe_face_vectors
authorDavid Wells <drwells@email.unc.edu>
Sat, 1 Aug 2020 13:06:17 +0000 (09:06 -0400)
committerGitHub <noreply@github.com>
Sat, 1 Aug 2020 13:06:17 +0000 (09:06 -0400)
Convert all face-related data structures of FiniteElement to vectors

1  2 
include/deal.II/fe/fe.h
source/fe/fe.cc
source/fe/fe_enriched.cc
source/fe/fe_face.cc
source/fe/fe_nedelec.cc
source/fe/fe_q_base.cc
source/fe/fe_q_hierarchical.cc
source/fe/fe_raviart_thomas_nodal.cc
source/fe/fe_system.cc
source/fe/fe_trace.cc

index 48b0c78124866718b19fbf77a3ae425888245209,8a24356dbcf1202474cfbd0de430a1d9af0b0b12..9763abf10d58b135ac990b261493fa29aeee0f44
@@@ -3127,10 -3121,9 +3128,10 @@@ FiniteElement<dim, spacedim>::component
  template <int dim, int spacedim>
  inline std::pair<unsigned int, unsigned int>
  FiniteElement<dim, spacedim>::face_system_to_component_index(
 -  const unsigned int index) const
 +  const unsigned int index,
 +  const unsigned int) const
  {
-   AssertIndexRange(index, face_system_to_component_table.size());
+   AssertIndexRange(index, face_system_to_component_table[0].size());
  
    // in debug mode, check whether the
    // function is primitive, since
@@@ -3168,11 -3161,10 +3169,11 @@@ FiniteElement<dim, spacedim>::system_to
  template <int dim, int spacedim>
  inline std::pair<std::pair<unsigned int, unsigned int>, unsigned int>
  FiniteElement<dim, spacedim>::face_system_to_base_index(
 -  const unsigned int index) const
 +  const unsigned int index,
 +  const unsigned int) const
  {
-   AssertIndexRange(index, face_system_to_base_table.size());
-   return face_system_to_base_table[index];
+   AssertIndexRange(index, face_system_to_base_table[0].size());
+   return face_system_to_base_table[0][index];
  }
  
  
diff --cc source/fe/fe.cc
index 56b4bc309165cfbea5820679e23607245772c111,e46a6ef4c7ee010a7559cf0aab0ee51d58523066..53a850375a05eb19138d9efec92536238f22591d
@@@ -1074,22 -1078,22 +1085,22 @@@ FiniteElement<dim, spacedim>::get_unit_
  
  template <int dim, int spacedim>
  bool
 -FiniteElement<dim, spacedim>::has_face_support_points() const
 +FiniteElement<dim, spacedim>::has_face_support_points(const unsigned int) const
  {
-   return (unit_face_support_points.size() != 0);
+   return (unit_face_support_points[0].size() != 0);
  }
  
  
  
  template <int dim, int spacedim>
  Point<dim - 1>
 -FiniteElement<dim, spacedim>::unit_face_support_point(
 -  const unsigned int index) const
 +FiniteElement<dim, spacedim>::unit_face_support_point(const unsigned int index,
 +                                                      const unsigned int) const
  {
    AssertIndexRange(index, this->n_dofs_per_face());
-   Assert(unit_face_support_points.size() == this->n_dofs_per_face(),
+   Assert(unit_face_support_points[0].size() == this->n_dofs_per_face(),
           ExcFEHasNoSupportPoints());
-   return unit_face_support_points[index];
+   return unit_face_support_points[0][index];
  }
  
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index beb8cb5a9282012f70838c964ca71b8dc69cbbef,f0392cccaa2620a10141c76b2dcd08ceab71190a..78d40b2ef00eb311b27afc7acd68e02b6a7138e5
@@@ -2345,13 -2345,12 +2350,14 @@@ FESystem<dim, spacedim>::unit_support_p
  
  template <int dim, int spacedim>
  Point<dim - 1>
 -FESystem<dim, spacedim>::unit_face_support_point(const unsigned int index) const
 +FESystem<dim, spacedim>::unit_face_support_point(
 +  const unsigned int index,
 +  const unsigned int face_no) const
  {
    AssertIndexRange(index, this->n_dofs_per_face());
-   Assert((this->unit_face_support_points.size() == this->n_dofs_per_face()) ||
-            (this->unit_face_support_points.size() == 0),
+   Assert((this->unit_face_support_points[0].size() ==
+           this->n_dofs_per_face()) ||
+            (this->unit_face_support_points[0].size() == 0),
           (typename FiniteElement<dim, spacedim>::ExcFEHasNoSupportPoints()));
  
    // let's see whether we have the information pre-computed
Simple merge

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.