From: bangerth Date: Mon, 20 May 2013 21:29:14 +0000 (+0000) Subject: Add an assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=886e2abb09684f583a61401548cf6a20fe5659b5;p=dealii-svn.git Add an assertion. git-svn-id: https://svn.dealii.org/trunk@29528 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/constraint_matrix.cc b/deal.II/source/lac/constraint_matrix.cc index 711c024189..306691df8b 100644 --- a/deal.II/source/lac/constraint_matrix.cc +++ b/deal.II/source/lac/constraint_matrix.cc @@ -1707,6 +1707,8 @@ void ConstraintMatrix::distribute (PETScWrappers::MPI::Vector &vec) const { Assert (sorted==true, ExcMatrixIsClosed()); + Assert (vec.has_ghost_elements() == false, + ExcMessage ("This operation can only be performed on vectors without ghost elements.")); typedef std::vector::const_iterator constraint_iterator; ConstraintLine index_comparison;