]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New get_cell function.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Jun 2004 13:03:42 +0000 (13:03 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Jun 2004 13:03:42 +0000 (13:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@9449 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h

index d1acd508cc0f85703f98995b75255129aa5afce1..0e9e77affda3482bd3a9fb1b733198250f51c29f 100644 (file)
@@ -823,6 +823,12 @@ class FEValuesBase : protected FEValuesData<dim>
                                      */
     const FiniteElement<dim> & get_fe () const;
 
+                                    /**
+                                     * Constant reference to the
+                                     * current cell
+                                     */
+    const typename DoFHandler<dim>::cell_iterator & get_cell () const;
+
                                     /**
                                      * Determine an estimate for the
                                      * memory consumption (in bytes)
@@ -1542,6 +1548,15 @@ FEValuesBase<dim>::get_mapping () const
 }
 
 
+
+template <int dim>
+inline
+const typename DoFHandler<dim>::cell_iterator &
+FEValuesBase<dim>::get_cell () const
+{
+  return present_cell;
+}
+
 /*------------------------ Inline functions: FEValues ----------------------------*/
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.