From 886e2abb09684f583a61401548cf6a20fe5659b5 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 20 May 2013 21:29:14 +0000 Subject: [PATCH] Add an assertion. git-svn-id: https://svn.dealii.org/trunk@29528 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/constraint_matrix.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5