From: bangerth Date: Mon, 13 Aug 2012 08:27:12 +0000 (+0000) Subject: Augment documentation. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4676b9b785dd97261b93170453989bcf0f98dd4;p=dealii-svn.git Augment documentation. git-svn-id: https://svn.dealii.org/trunk@25923 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/hp/fe_collection.h b/deal.II/include/deal.II/hp/fe_collection.h index 1255ea88ca..cfe2769964 100644 --- a/deal.II/include/deal.II/hp/fe_collection.h +++ b/deal.II/include/deal.II/hp/fe_collection.h @@ -116,6 +116,11 @@ namespace hp * this collection. This number must * be the same for all elements in the * collection. + * + * This function calls + * FiniteElement::n_components. See + * @ref GlossComponent "the glossary" + * for more information. */ unsigned int n_components () const; @@ -236,6 +241,15 @@ namespace hp FECollection::n_components () const { Assert (finite_elements.size () > 0, ExcNoFiniteElements()); + + // note that there is no need + // here to enforce that indeed + // all elements have the same + // number of components since we + // have already done this when + // adding a new element to the + // collection. + return finite_elements[0]->n_components (); }