]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the correct reference cell in MappingFEField.
authorDavid Wells <drwells@email.unc.edu>
Mon, 19 Jul 2021 20:53:52 +0000 (16:53 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 19 Jul 2021 20:53:52 +0000 (16:53 -0400)
source/fe/mapping_fe_field.cc

index 5d0b581f68560e082c9c415b5f13204a1ae0e56e..b23c21fb18dbdfdbc9d66bd5ccbfdc67f3004af1 100644 (file)
@@ -638,8 +638,7 @@ MappingFEField<dim, spacedim, VectorType, void>::get_face_data(
     std::make_unique<InternalData>(euler_dof_handler->get_fe(), fe_mask);
   auto &                data = dynamic_cast<InternalData &>(*data_ptr);
   const Quadrature<dim> q(
-    QProjector<dim>::project_to_all_faces(ReferenceCells::get_hypercube<dim>(),
-                                          quadrature[0]));
+    QProjector<dim>::project_to_all_faces(reference_cell, quadrature[0]));
   this->compute_face_data(update_flags, q, quadrature[0].size(), data);
 
   return data_ptr;
@@ -656,7 +655,7 @@ MappingFEField<dim, spacedim, VectorType, void>::get_subface_data(
     std::make_unique<InternalData>(euler_dof_handler->get_fe(), fe_mask);
   auto &                data = dynamic_cast<InternalData &>(*data_ptr);
   const Quadrature<dim> q(QProjector<dim>::project_to_all_subfaces(
-    ReferenceCells::get_hypercube<dim>(), quadrature));
+    reference_cell, quadrature));
   this->compute_face_data(update_flags, q, quadrature.size(), data);
 
   return data_ptr;
@@ -1720,7 +1719,7 @@ MappingFEField<dim, spacedim, VectorType, void>::fill_fe_face_values(
       face_no,
       numbers::invalid_unsigned_int,
       QProjector<dim>::DataSetDescriptor::face(
-        ReferenceCells::get_hypercube<dim>(),
+        reference_cell,
         face_no,
         cell->face_orientation(face_no),
         cell->face_flip(face_no),
@@ -1761,7 +1760,7 @@ MappingFEField<dim, spacedim, VectorType, void>::fill_fe_subface_values(
       face_no,
       numbers::invalid_unsigned_int,
       QProjector<dim>::DataSetDescriptor::subface(
-        ReferenceCells::get_hypercube<dim>(),
+        reference_cell,
         face_no,
         subface_no,
         cell->face_orientation(face_no),

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.