]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FEInterfaceViews::Vector: Make interface consistent with FEValuesViews::Vector
authorJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 8 Jun 2021 15:45:38 +0000 (17:45 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 8 Jun 2021 15:50:23 +0000 (17:50 +0200)
include/deal.II/fe/fe_interface_values.h

index d4270923aa65323e95eda889133aa4fbb560429a..379782faf12be10cef344d9a3b1372a4f969cd15 100644 (file)
@@ -301,6 +301,16 @@ namespace FEInterfaceViews
      * @p interface_dof_index in the quadrature point @p q_point.
      */
     value_type
+    jump_value(const unsigned int interface_dof_index,
+               const unsigned int q_point) const;
+
+    /**
+     * The same as above.
+     *
+     * @deprecated Use the jump_value() function instead.
+     */
+    DEAL_II_DEPRECATED
+    value_type
     jump(const unsigned int interface_dof_index,
          const unsigned int q_point) const;
 
@@ -310,6 +320,16 @@ namespace FEInterfaceViews
      * function @p interface_dof_index in the quadrature point @p q_point.
      */
     value_type
+    average_value(const unsigned int interface_dof_index,
+                  const unsigned int q_point) const;
+
+    /**
+     * The same as above.
+     *
+     * @deprecated Use the average_value() function instead.
+     */
+    DEAL_II_DEPRECATED
+    value_type
     average(const unsigned int interface_dof_index,
             const unsigned int q_point) const;
 
@@ -359,6 +379,16 @@ namespace FEInterfaceViews
      * the component selected by this view.
      */
     third_derivative_type
+    jump_third_derivative(const unsigned int interface_dof_index,
+                          const unsigned int q_point) const;
+
+    /**
+     * The same as above.
+     *
+     * @deprecated Use the jump_third_derivative() function instead.
+     */
+    DEAL_II_DEPRECATED
+    third_derivative_type
     jump_3rd_derivative(const unsigned int interface_dof_index,
                         const unsigned int q_point) const;
 
@@ -1897,8 +1927,8 @@ namespace FEInterfaceViews
 
   template <int dim, int spacedim>
   typename Vector<dim, spacedim>::value_type
-  Vector<dim, spacedim>::jump(const unsigned int interface_dof_index,
-                              const unsigned int q_point) const
+  Vector<dim, spacedim>::jump_value(const unsigned int interface_dof_index,
+                                    const unsigned int q_point) const
   {
     const auto dof_pair = this->fe_interface->dofmap[interface_dof_index];
 
@@ -1921,8 +1951,18 @@ namespace FEInterfaceViews
 
   template <int dim, int spacedim>
   typename Vector<dim, spacedim>::value_type
-  Vector<dim, spacedim>::average(const unsigned int interface_dof_index,
-                                 const unsigned int q_point) const
+  Vector<dim, spacedim>::jump(const unsigned int interface_dof_index,
+                              const unsigned int q_point) const
+  {
+    return jump_value(interface_dof_index, q_point);
+  }
+
+
+
+  template <int dim, int spacedim>
+  typename Vector<dim, spacedim>::value_type
+  Vector<dim, spacedim>::average_value(const unsigned int interface_dof_index,
+                                       const unsigned int q_point) const
   {
     const auto dof_pair = this->fe_interface->dofmap[interface_dof_index];
 
@@ -1948,6 +1988,16 @@ namespace FEInterfaceViews
 
 
 
+  template <int dim, int spacedim>
+  typename Vector<dim, spacedim>::value_type
+  Vector<dim, spacedim>::average(const unsigned int interface_dof_index,
+                                 const unsigned int q_point) const
+  {
+    return average_value(interface_dof_index, q_point);
+  }
+
+
+
   template <int dim, int spacedim>
   typename Vector<dim, spacedim>::gradient_type
   Vector<dim, spacedim>::average_gradient(
@@ -2063,7 +2113,7 @@ namespace FEInterfaceViews
 
   template <int dim, int spacedim>
   typename Vector<dim, spacedim>::third_derivative_type
-  Vector<dim, spacedim>::jump_3rd_derivative(
+  Vector<dim, spacedim>::jump_third_derivative(
     const unsigned int interface_dof_index,
     const unsigned int q_point) const
   {
@@ -2086,6 +2136,17 @@ namespace FEInterfaceViews
 
     return value;
   }
+
+
+
+  template <int dim, int spacedim>
+  typename Vector<dim, spacedim>::third_derivative_type
+  Vector<dim, spacedim>::jump_3rd_derivative(
+    const unsigned int interface_dof_index,
+    const unsigned int q_point) const
+  {
+    return jump_third_derivative(interface_dof_index, q_point);
+  }
 } // namespace FEInterfaceViews
 
 #endif // DOXYGEN

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.