From 42d9d412014b8b4bf433efdcebd62c2f9e24a285 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 13 Jun 2014 15:28:01 +0000 Subject: [PATCH] Make somewhat more general 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.")); -- 2.39.5