]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add AssertThrow to catch the not implemented case
authorFabian Castelli <fabian.castelli@kit.edu>
Wed, 6 Jul 2022 18:28:29 +0000 (20:28 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Wed, 6 Jul 2022 18:28:29 +0000 (20:28 +0200)
include/deal.II/matrix_free/operators.h

index 4118825da36c8cac0612991d7ff5d8cffe45269c..5273980806c3fd9878506b5910398553830db4e1 100644 (file)
@@ -1831,7 +1831,12 @@ namespace MatrixFreeOperators
                VectorType,
                VectorizedArrayType>::MassOperator()
     : Base<dim, VectorType, VectorizedArrayType>()
-  {}
+  {
+    AssertThrow(
+      IsBlockVector<VectorType>::value == false,
+      ExcNotImplemented(
+        "This class only supports the non-blocked vector variant of the Base operator because only a single FEEvaluation object is used in the apply function."));
+  }
 
 
 

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.