From: hartmann Date: Wed, 16 Jun 1999 16:03:23 +0000 (+0000) Subject: add #get_fe()# function X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3676b89d643a870818ba4f2046ef74010d8a543d;p=dealii-svn.git add #get_fe()# function git-svn-id: https://svn.dealii.org/trunk@1405 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe_values.h b/deal.II/deal.II/include/fe/fe_values.h index 7580a820dd..ef100982bc 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -487,6 +487,14 @@ class FEValuesBase */ const vector & get_JxW_values () const; + /** + * Return a constant reference to the + * selected finite element object. This + * function is inline, so it should + * be reasonably fast. + */ + const FiniteElement & get_fe () const; + /** * Exception */ @@ -1281,6 +1289,13 @@ FEValuesBase::get_JxW_values () const { +template +inline +const FiniteElement & +FEValuesBase::get_fe () const { + return *fe; +}; + /*------------------------ Inline functions: FEFaceValuesBase --------------------*/