]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add assert
authorPeter Munch <peterrmuench@gmail.com>
Sat, 21 Mar 2020 19:26:11 +0000 (20:26 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 21 Mar 2020 19:26:11 +0000 (20:26 +0100)
include/deal.II/lac/la_sm_vector.templates.h

index 91b9e9dcdc8d1eaa2a5966d506eb215b68ccbf31..320d8248f56382d60a9ed4eec0d1e097a6b4215c 100644 (file)
@@ -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<Number, MemorySpaceType>::compress_finish(
       ::dealii::VectorOperation::values operation)
     {
-      (void)operation;
+      Assert(::dealii::VectorOperation::values::add == operation,
+             ExcNotImplemented());
       partitioner_sm->compress_finish(data.values.get(), data.others);
     }
 

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.