]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix entries in table
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 29 Mar 2006 07:09:46 +0000 (07:09 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 29 Mar 2006 07:09:46 +0000 (07:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@12752 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 0c862020d942ec037a0002b0cd9b74fd104d89e8..21992ac162378adc973191924129b622eb35dd1a 100644 (file)
@@ -989,12 +989,13 @@ FESystem<dim>::build_cell_tables()
                                   // 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)
       for (unsigned int k=0; k<base_element(base).n_components(); ++k)
-       this->component_to_base_table[total_index++] = std::make_pair(base,k);
+       this->component_to_base_table[total_index++]
+         = std::make_pair(base,k+m*base_element(base).n_components());
   Assert (total_index == this->component_to_base_table.size(),
          ExcInternalError());
 

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.