From 9e80d1bc0d1f65ed369a104655895166609337d0 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 18 Nov 2020 17:04:43 -0500 Subject: [PATCH] Add simplex elements to the MF permitted list. --- include/deal.II/matrix_free/shape_info.templates.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/deal.II/matrix_free/shape_info.templates.h b/include/deal.II/matrix_free/shape_info.templates.h index 802607bfd6..81280e4f48 100644 --- a/include/deal.II/matrix_free/shape_info.templates.h +++ b/include/deal.II/matrix_free/shape_info.templates.h @@ -106,6 +106,14 @@ namespace internal { const FE_Poly *fe_poly_ptr = dynamic_cast *>(fe_ptr); +#ifdef DEAL_II_WITH_SIMPLEX_SUPPORT + // Simplices are a special case since the polynomial family is not + // indicative of their support + if (dynamic_cast *>(fe_poly_ptr) || + dynamic_cast *>(fe_poly_ptr)) + return true; +#endif + if (dynamic_cast *>( &fe_poly_ptr->get_poly_space()) == nullptr && dynamic_cast