]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 May 2013 21:29:14 +0000 (21:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 May 2013 21:29:14 +0000 (21:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@29528 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/constraint_matrix.cc

index 711c0241896577ff4ddcd7f98cecb1dbb145fc56..306691df8bed740a5ff5bf3d4f8e9c6029dc80bb 100644 (file)
@@ -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<ConstraintLine>::const_iterator constraint_iterator;
   ConstraintLine index_comparison;

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.