]> https://gitweb.dealii.org/ - dealii.git/commitdiff
errors fixed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 25 Jan 2006 22:27:43 +0000 (22:27 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 25 Jan 2006 22:27:43 +0000 (22:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@12168 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe.cc
deal.II/deal.II/source/fe/fe_system.cc

index 5a84e66d0a296f5fda88fd6a2fb32cdd63cc33df..c3a90855744d245f32069f72e86923ff872666b2 100644 (file)
@@ -183,7 +183,7 @@ FiniteElement<dim>::FiniteElement (
                                   // only one (vector-)component; if
                                   // the element is not primitive,
                                   // leave these tables empty.
-  if (!cached_primitivity)
+  if (cached_primitivity)
     {
       system_to_component_table.resize(this->dofs_per_cell);
       face_system_to_component_table.resize(this->dofs_per_face);
index f06ff678ea73ff221cab9a7a001cd2b8a9353849..8e7b4aadbe3a54814eb505b6bb94ccba724b40f4 100644 (file)
@@ -991,6 +991,12 @@ template <int dim>
 void
 FESystem<dim>::build_cell_tables()
 {
+                                  // If the system is not primitive,
+                                  // these have not been initialized
+                                  // by FiniteElement
+  this->system_to_component_table.resize(this->dofs_per_cell);
+  this->face_system_to_component_table.resize(this->dofs_per_face);
+
   unsigned total_index = 0;
   for (unsigned int base=0; base < n_base_elements(); ++base)
     for (unsigned int m = 0; m < element_multiplicity(base); ++m)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.