From 74dd427a41a256eb87142468af5f18babfea1bba Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 16 Sep 2002 18:10:12 +0000 Subject: [PATCH] Clarify comment. git-svn-id: https://svn.dealii.org/trunk@6434 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_base.h | 12 +++++++++++- deal.II/deal.II/source/fe/fe.cc | 9 +++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe_base.h b/deal.II/deal.II/include/fe/fe_base.h index e30daa0172..220f4ccb40 100644 --- a/deal.II/deal.II/include/fe/fe_base.h +++ b/deal.II/deal.II/include/fe/fe_base.h @@ -1225,12 +1225,22 @@ class FiniteElementBase : public Subscriptor, * only be zero, and the inner * index is equal to the stored * value. + * + * If the element is not + * primitive, i.e. there are + * shape functions that are + * non-zero in more than one + * vector-component, then this + * function is obviously useless, + * and all entries will be + * invalid. */ std::vector< std::vector > component_to_system_table; /** * Map between component and - * linear dofs on a face. + * linear dofs on a face. Same + * applies as above. */ std::vector< std::vector > face_component_to_system_table; diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index d0b1c0d7b9..4417a951b6 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -189,10 +189,11 @@ FiniteElementBase (const FiniteElementData &fe_data, Assert (false, ExcNotImplemented()); }; - // this is the default way, if there is only - // one component; if there are several, then - // the constructor of the derived class needs - // to fill these arrays + // this is the default way, if + // there is only one component; if + // there are several, then the + // constructor of the derived class + // needs to overwrite these arrays for (unsigned int j=0 ; jdofs_per_cell ; ++j) { system_to_component_table[j] = std::pair(0,j); -- 2.39.5