From: Timo Heister Date: Mon, 27 Nov 2017 17:04:38 +0000 (-0500) Subject: check Trilinos compress() argument X-Git-Tag: v9.0.0-rc1~721^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5538%2Fhead;p=dealii.git check Trilinos compress() argument --- diff --git a/source/lac/trilinos_vector.cc b/source/lac/trilinos_vector.cc index d566f9863c..db03f38913 100644 --- a/source/lac/trilinos_vector.cc +++ b/source/lac/trilinos_vector.cc @@ -547,6 +547,15 @@ namespace TrilinosWrappers else if (given_last_action==::dealii::VectorOperation::insert) mode = Insert; } + else + { + Assert( + ((last_action == Add) && (given_last_action==::dealii::VectorOperation::add)) + || + ((last_action == Insert) && (given_last_action==::dealii::VectorOperation::insert)), + ExcMessage("The last operation on the Vector and the given last action in the compress() call do not agree!")); + } + #ifdef DEBUG # ifdef DEAL_II_WITH_MPI