]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix: When we have a base element with more than one component (e.g. a
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 May 2002 10:03:07 +0000 (10:03 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 May 2002 10:03:07 +0000 (10:03 +0000)
FESystem itself as a base element), then make sure we iterate over its
components when setting up the cell table.

git-svn-id: https://svn.dealii.org/trunk@5851 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ec9bb7ea9666daf8a981ef167fd41742fe5d8978..041609016014495f0e2bfb2d0190f97ec68fb76a 100644 (file)
@@ -662,7 +662,8 @@ FESystem<dim>::build_cell_table()
   unsigned total_index = 0;
   for (unsigned int base=0 ; base < n_base_elements() ; ++base)
     for (unsigned int m = 0; m < element_multiplicity(base); ++m)
-      component_to_base_table[total_index++] = base;
+      for (unsigned int k=0; k<base_element(base).n_components(); ++k)
+       component_to_base_table[total_index++] = base;
   Assert (total_index == 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.