From e4676b9b785dd97261b93170453989bcf0f98dd4 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 13 Aug 2012 08:27:12 +0000 Subject: [PATCH] Augment documentation. git-svn-id: https://svn.dealii.org/trunk@25923 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/hp/fe_collection.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 (); } -- 2.39.5