From: Ralf Hartmann Date: Tue, 22 Jun 2004 13:03:42 +0000 (+0000) Subject: New get_cell function. X-Git-Tag: v8.0.0~15010 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43818d937aabdf67edf5355c906799b222be9738;p=dealii.git New get_cell function. git-svn-id: https://svn.dealii.org/trunk@9449 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 d1acd508cc..0e9e77affd 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -823,6 +823,12 @@ class FEValuesBase : protected FEValuesData */ const FiniteElement & get_fe () const; + /** + * Constant reference to the + * current cell + */ + const typename DoFHandler::cell_iterator & get_cell () const; + /** * Determine an estimate for the * memory consumption (in bytes) @@ -1542,6 +1548,15 @@ FEValuesBase::get_mapping () const } + +template +inline +const typename DoFHandler::cell_iterator & +FEValuesBase::get_cell () const +{ + return present_cell; +} + /*------------------------ Inline functions: FEValues ----------------------------*/