]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide a way to get at the quadrature formula from the FEValues object.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Jun 2001 10:36:02 +0000 (10:36 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Jun 2001 10:36:02 +0000 (10:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@4746 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ae1e45ed4bbf7fd525af2643a0b6015cf2806509..32e9b974a62f59aabf92fc4ab58ef69fb944dccf 100644 (file)
@@ -678,6 +678,13 @@ class FEValues : public FEValuesBase<dim>
                                      */
     void reinit (const typename DoFHandler<dim>::cell_iterator &);
 
+                                    /**
+                                     * Return a reference to the copy
+                                     * of the quadrature formula
+                                     * stored by this object.
+                                     */
+    const Quadrature<dim> & get_quadrature () const;
+    
                                     /**
                                      * Determine an estimate for the
                                      * memory consumption (in bytes)
@@ -687,7 +694,8 @@ class FEValues : public FEValuesBase<dim>
 
   private:
                                     /**
-                                     * Store the quadrature formula here.
+                                     * Store a copy of the quadrature
+                                     * formula here.
                                      */
     const Quadrature<dim> quadrature;
 
@@ -787,9 +795,17 @@ class FEFaceValuesBase : public FEValuesBase<dim>
                                      */
     typename DoFHandler<dim>::face_iterator get_face() const;
 
+                                    /**
+                                     * Return a reference to the copy
+                                     * of the quadrature formula
+                                     * stored by this object.
+                                     */
+    const Quadrature<dim-1> & get_quadrature () const;
+    
   protected:
                                     /**
-                                     * Store the quadrature formula here.
+                                     * Store a copy of the quadrature
+                                     * formula here.
                                      */
     const Quadrature<dim-1> quadrature;
 
@@ -1008,6 +1024,18 @@ FEValuesBase<dim>::get_mapping () const
 }
 
 
+/*------------------------ Inline functions: FEFaceValuesBase --------------------*/
+
+
+template <int dim>
+const Quadrature<dim> &
+FEValues<dim>::get_quadrature () const 
+{
+  return quadrature;
+};
+
+
+
 /*------------------------ Inline functions: FEFaceValuesBase --------------------*/
 
 
@@ -1032,4 +1060,15 @@ FEFaceValuesBase<dim>::get_face() const
 };
 
 
+
+
+template <int dim>
+const Quadrature<dim-1> &
+FEFaceValuesBase<dim>::get_quadrature () const 
+{
+  return quadrature;
+};
+
+
+
 #endif

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.