From: Martin Kronbichler Date: Fri, 13 Jun 2014 15:28:01 +0000 (+0000) Subject: Make somewhat more general X-Git-Tag: v8.2.0-rc1~397 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d9d412014b8b4bf433efdcebd62c2f9e24a285;p=dealii.git Make somewhat more general git-svn-id: https://svn.dealii.org/trunk@33041 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/matrix_free/shape_info.templates.h b/deal.II/include/deal.II/matrix_free/shape_info.templates.h index 826649644f..a38ea4fe72 100644 --- a/deal.II/include/deal.II/matrix_free/shape_info.templates.h +++ b/deal.II/include/deal.II/matrix_free/shape_info.templates.h @@ -54,8 +54,7 @@ namespace internal const unsigned int base_element_number) { const FiniteElement *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."));