]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Implement FEInterfaceValues::get_mapping() and ::get_fe 10681/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 9 Jul 2020 18:37:20 +0000 (20:37 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 9 Jul 2020 18:38:08 +0000 (20:38 +0200)
examples/step-12/step-12.cc
include/deal.II/fe/fe_interface_values.h

index fcec1e2c1f998d2ffaba5d6cc9ba6f24502d0dd2..bb0c680f1d9a72d934ebd35e8826c3adad6b793f 100644 (file)
@@ -166,12 +166,10 @@ namespace Step12
                   scratch_data.fe_values.get_fe(),
                   scratch_data.fe_values.get_quadrature(),
                   scratch_data.fe_values.get_update_flags())
-      , fe_interface_values(
-          scratch_data.fe_values
-            .get_mapping(), // TODO: implement for fe_interface_values
-          scratch_data.fe_values.get_fe(),
-          scratch_data.fe_interface_values.get_quadrature(),
-          scratch_data.fe_interface_values.get_update_flags())
+      , fe_interface_values(scratch_data.fe_interface_values.get_mapping(),
+                            scratch_data.fe_interface_values.get_fe(),
+                            scratch_data.fe_interface_values.get_quadrature(),
+                            scratch_data.fe_interface_values.get_update_flags())
     {}
 
     FEValues<dim>          fe_values;
index 7412b0a6089ec47571b6d859c3503eace64b2dd6..3d1a2b8c98c27e8a46ec1ca9035f4fe91d32346f 100644 (file)
@@ -142,6 +142,18 @@ public:
   const FEFaceValuesBase<dim, spacedim> &
   get_fe_face_values(const unsigned int cell_index) const;
 
+  /**
+   * Constant reference to the selected mapping object.
+   */
+  const Mapping<dim, spacedim> &
+  get_mapping() const;
+
+  /**
+   * Constant reference to the selected finite element object.
+   */
+  const FiniteElement<dim, spacedim> &
+  get_fe() const;
+
   /**
    * Return a reference to the quadrature object in use.
    */
@@ -644,6 +656,24 @@ FEInterfaceValues<dim, spacedim>::get_normal_vectors() const
 
 
 
+template <int dim, int spacedim>
+const Mapping<dim, spacedim> &
+FEInterfaceValues<dim, spacedim>::get_mapping() const
+{
+  return internal_fe_face_values.get_mapping();
+}
+
+
+
+template <int dim, int spacedim>
+const FiniteElement<dim, spacedim> &
+FEInterfaceValues<dim, spacedim>::get_fe() const
+{
+  return internal_fe_face_values.get_fe();
+}
+
+
+
 template <int dim, int spacedim>
 const Quadrature<dim - 1> &
 FEInterfaceValues<dim, spacedim>::get_quadrature() const

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.