From: Wolfgang Bangerth Date: Thu, 21 Jun 2001 10:36:02 +0000 (+0000) Subject: Provide a way to get at the quadrature formula from the FEValues object. X-Git-Tag: v8.0.0~19048 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed04604243cd94f6d813eb8e45b7eff53337ddf0;p=dealii.git Provide a way to get at the quadrature formula from the FEValues object. git-svn-id: https://svn.dealii.org/trunk@4746 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 ae1e45ed4b..32e9b974a6 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -678,6 +678,13 @@ class FEValues : public FEValuesBase */ void reinit (const typename DoFHandler::cell_iterator &); + /** + * Return a reference to the copy + * of the quadrature formula + * stored by this object. + */ + const Quadrature & get_quadrature () const; + /** * Determine an estimate for the * memory consumption (in bytes) @@ -687,7 +694,8 @@ class FEValues : public FEValuesBase private: /** - * Store the quadrature formula here. + * Store a copy of the quadrature + * formula here. */ const Quadrature quadrature; @@ -787,9 +795,17 @@ class FEFaceValuesBase : public FEValuesBase */ typename DoFHandler::face_iterator get_face() const; + /** + * Return a reference to the copy + * of the quadrature formula + * stored by this object. + */ + const Quadrature & get_quadrature () const; + protected: /** - * Store the quadrature formula here. + * Store a copy of the quadrature + * formula here. */ const Quadrature quadrature; @@ -1008,6 +1024,18 @@ FEValuesBase::get_mapping () const } +/*------------------------ Inline functions: FEFaceValuesBase --------------------*/ + + +template +const Quadrature & +FEValues::get_quadrature () const +{ + return quadrature; +}; + + + /*------------------------ Inline functions: FEFaceValuesBase --------------------*/ @@ -1032,4 +1060,15 @@ FEFaceValuesBase::get_face() const }; + + +template +const Quadrature & +FEFaceValuesBase::get_quadrature () const +{ + return quadrature; +}; + + + #endif