From: Wolfgang Bangerth Date: Mon, 13 Aug 2012 08:27:12 +0000 (+0000) Subject: Augment documentation. X-Git-Tag: v8.0.0~2327 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec67df27b7ddf8c247a2fcf24776e9eb731f7b1;p=dealii.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 (); }