From: Fabian Castelli Date: Wed, 6 Jul 2022 18:28:29 +0000 (+0200) Subject: Add AssertThrow to catch the not implemented case X-Git-Tag: v9.5.0-rc1~1065^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2060601b4dc48e0debb455bc197402c0d55a5e8e;p=dealii.git Add AssertThrow to catch the not implemented case --- diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index 4118825da3..5273980806 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -1831,7 +1831,12 @@ namespace MatrixFreeOperators VectorType, VectorizedArrayType>::MassOperator() : Base() - {} + { + AssertThrow( + IsBlockVector::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.")); + }