From 34046f5a314d50ff03172c7dcb183786785935fb Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 25 Mar 2021 23:02:05 +0100 Subject: [PATCH] FETools::Compositing::compute_nonzero_components(): add assert --- include/deal.II/fe/fe_tools.templates.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/deal.II/fe/fe_tools.templates.h b/include/deal.II/fe/fe_tools.templates.h index 48512f06fc..ee985f56ea 100644 --- a/include/deal.II/fe/fe_tools.templates.h +++ b/include/deal.II/fe/fe_tools.templates.h @@ -375,7 +375,10 @@ namespace FETools const bool do_tensor_product) { AssertDimension(fes.size(), multiplicities.size()); - + Assert( + fes.size() > 0, + ExcMessage( + "This function only makes sense if at least one FiniteElement is provided.")); // first count the number of dofs and components that will emerge from the // given FEs unsigned int n_shape_functions = 0; -- 2.39.5