From 407b03d258c707198e74593b3bc91d921c061ae7 Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 22 Jun 2004 13:03:42 +0000 Subject: [PATCH] New get_cell function. git-svn-id: https://svn.dealii.org/trunk@9449 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_values.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 ----------------------------*/ -- 2.39.5