]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add FEFaceValuesBase::get_face_number()
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 6 Aug 2021 16:57:46 +0000 (18:57 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 6 Aug 2021 18:25:41 +0000 (20:25 +0200)
include/deal.II/fe/fe_values.h

index a945b4e707c118b67b2b22a386f94719f61952c5..2af6135b0d6a9420e470c05154dcd78af427e414 100644 (file)
@@ -4186,6 +4186,13 @@ public:
   const std::vector<Tensor<1, spacedim>> &
   get_boundary_forms() const;
 
+  /**
+   * Return the number of the face selected the last time the reinit() function
+   * was called.
+   */
+  unsigned int
+  get_face_number() const;
+
   /**
    * Return the index of the face selected the last time the reinit() function
    * was called.
@@ -6141,6 +6148,14 @@ FEValues<dim, spacedim>::get_present_fe_values() const
 /*---------------------- Inline functions: FEFaceValuesBase -----------------*/
 
 
+template <int dim, int spacedim>
+inline unsigned int
+FEFaceValuesBase<dim, spacedim>::get_face_number() const
+{
+  return present_face_no;
+}
+
+
 template <int dim, int spacedim>
 inline unsigned int
 FEFaceValuesBase<dim, spacedim>::get_face_index() 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.