]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
MappingQ::get_degree
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2001 11:29:34 +0000 (11:29 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2001 11:29:34 +0000 (11:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@5006 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/mapping_q.h
deal.II/deal.II/source/fe/mapping_q.cc

index f571da11387ef70f7bdbfe5168dd16ef1315eb2e..289f4dcbb711b35f0d1f943bb2fcbd6faecf26e9 100644 (file)
@@ -117,6 +117,13 @@ class MappingQ : public MappingQ1<dim>
                             const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
 
+                                    /**
+                                     * Return the degree of the
+                                     * mapping, i.e. the value which
+                                     * was passed to the constructor.
+                                     */
+    unsigned int get_degree () const;
+    
   protected:
                                     /**
                                      * Implementation of the interface in
@@ -542,4 +549,5 @@ template <> void MappingQ<3>::fill_quad_support_points_simple (
   std::vector<Point<3> > &a) const;
 
 
+
 #endif
index 8799bb3bd902c3be0c3d801dd1d491f1abb62583..191fe3f182ac82f8eff625fdad4bb21605a241a6 100644 (file)
@@ -1266,7 +1266,16 @@ Point<dim> MappingQ<dim>::transform_real_to_unit_cell (
   delete mdata;
   return p_unit;
 }
-  
+
+
+
+template <int dim>
+unsigned int
+MappingQ<dim>::get_degree() const
+{
+  return degree;
+};
+
   
 // explicit instantiation
 template class MappingQ<deal_II_dimension>;

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.