]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make somewhat more general
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Jun 2014 15:28:01 +0000 (15:28 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Jun 2014 15:28:01 +0000 (15:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@33041 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/matrix_free/shape_info.templates.h

index 826649644fe8b780d69a3900e2ef6334041c0e0f..a38ea4fe72b60ad99ed2867417819e6ad8433bfc 100644 (file)
@@ -54,8 +54,7 @@ namespace internal
                                const unsigned int base_element_number)
     {
       const FiniteElement<dim> *fe = &fe_in;
-      if (fe_in.n_components() > 1)
-        fe = &fe_in.base_element(base_element_number);
+      fe = &fe_in.base_element(base_element_number);
 
       Assert (fe->n_components() == 1,
               ExcMessage("FEEvaluation only works for scalar finite elements."));

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.