From: Peter Munch Date: Sat, 21 Mar 2020 19:26:11 +0000 (+0100) Subject: Add assert X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0de1ec40167f08b8b40a61461b626d8836863f25;p=dealii.git Add assert --- diff --git a/include/deal.II/lac/la_sm_vector.templates.h b/include/deal.II/lac/la_sm_vector.templates.h index 91b9e9dcdc..320d8248f5 100644 --- a/include/deal.II/lac/la_sm_vector.templates.h +++ b/include/deal.II/lac/la_sm_vector.templates.h @@ -377,7 +377,8 @@ namespace LinearAlgebra const unsigned int communication_channel, ::dealii::VectorOperation::values operation) { - (void)operation; + Assert(::dealii::VectorOperation::values::add == operation, + ExcNotImplemented()); partitioner_sm->compress_start(data.values.get(), data.others, communication_channel); @@ -390,7 +391,8 @@ namespace LinearAlgebra Vector::compress_finish( ::dealii::VectorOperation::values operation) { - (void)operation; + Assert(::dealii::VectorOperation::values::add == operation, + ExcNotImplemented()); partitioner_sm->compress_finish(data.values.get(), data.others); }