From 0de1ec40167f08b8b40a61461b626d8836863f25 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sat, 21 Mar 2020 20:26:11 +0100 Subject: [PATCH] Add assert --- include/deal.II/lac/la_sm_vector.templates.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.39.5