From: wolf Date: Fri, 14 Sep 2001 11:29:34 +0000 (+0000) Subject: MappingQ::get_degree X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396ea7ccd6bebf770fa98748345471c00462cc91;p=dealii-svn.git MappingQ::get_degree git-svn-id: https://svn.dealii.org/trunk@5006 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/mapping_q.h b/deal.II/deal.II/include/fe/mapping_q.h index f571da1138..289f4dcbb7 100644 --- a/deal.II/deal.II/include/fe/mapping_q.h +++ b/deal.II/deal.II/include/fe/mapping_q.h @@ -117,6 +117,13 @@ class MappingQ : public MappingQ1 const typename Mapping::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 > &a) const; + #endif diff --git a/deal.II/deal.II/source/fe/mapping_q.cc b/deal.II/deal.II/source/fe/mapping_q.cc index 8799bb3bd9..191fe3f182 100644 --- a/deal.II/deal.II/source/fe/mapping_q.cc +++ b/deal.II/deal.II/source/fe/mapping_q.cc @@ -1266,7 +1266,16 @@ Point MappingQ::transform_real_to_unit_cell ( delete mdata; return p_unit; } - + + + +template +unsigned int +MappingQ::get_degree() const +{ + return degree; +}; + // explicit instantiation template class MappingQ;