]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add #get_fe()# function
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jun 1999 16:03:23 +0000 (16:03 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jun 1999 16:03:23 +0000 (16:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@1405 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 7580a820ddb14e2661fade9e5eae3deb56501144..ef100982bc72ca10d8abbabecb2e38b5c2fa1934 100644 (file)
@@ -487,6 +487,14 @@ class FEValuesBase
                                      */
     const vector<double> & 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<dim> & get_fe () const;
+
                                     /**
                                      * Exception
                                      */
@@ -1281,6 +1289,13 @@ FEValuesBase<dim>::get_JxW_values () const {
 
 
 
+template <int dim>
+inline
+const FiniteElement<dim> & 
+FEValuesBase<dim>::get_fe () const {
+  return *fe;
+};
+
 
 /*------------------------ Inline functions: FEFaceValuesBase --------------------*/
 

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.