From: Peter Munch Date: Thu, 25 Mar 2021 22:02:05 +0000 (+0100) Subject: FETools::Compositing::compute_nonzero_components(): add assert X-Git-Tag: v9.3.0-rc1~241^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11965%2Fhead;p=dealii.git FETools::Compositing::compute_nonzero_components(): add assert --- 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;