From: Jean-Paul Pelteret Date: Fri, 6 Aug 2021 16:57:46 +0000 (+0200) Subject: Add FEFaceValuesBase::get_face_number() X-Git-Tag: v9.4.0-rc1~1099^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84e85ddd9a1b286ce08d5d44889b43d9e9304854;p=dealii.git Add FEFaceValuesBase::get_face_number() --- diff --git a/include/deal.II/fe/fe_values.h b/include/deal.II/fe/fe_values.h index a945b4e707..2af6135b0d 100644 --- a/include/deal.II/fe/fe_values.h +++ b/include/deal.II/fe/fe_values.h @@ -4186,6 +4186,13 @@ public: const std::vector> & 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::get_present_fe_values() const /*---------------------- Inline functions: FEFaceValuesBase -----------------*/ +template +inline unsigned int +FEFaceValuesBase::get_face_number() const +{ + return present_face_no; +} + + template inline unsigned int FEFaceValuesBase::get_face_index() const