]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FETools::Compositing::compute_nonzero_components(): add assert 11965/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 25 Mar 2021 22:02:05 +0000 (23:02 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 5 Apr 2021 15:40:38 +0000 (17:40 +0200)
include/deal.II/fe/fe_tools.templates.h

index 48512f06fcd8e0fef6413c09ef114d8f3219d9c8..ee985f56eafa72d54cf78a7ba8385f4e03ad1f4d 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.