From: bangerth Date: Mon, 18 Sep 2006 19:57:12 +0000 (+0000) Subject: Add an assertion X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96b202a9e19a8fc2d0a0942b6926517286bb7d38;p=dealii-svn.git Add an assertion git-svn-id: https://svn.dealii.org/trunk@13923 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_constraints.h b/deal.II/deal.II/include/dofs/dof_constraints.h index 2f7321cf65..611a97af02 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.h @@ -1068,6 +1068,8 @@ ConstraintMatrix::add_entry (const unsigned int line, const double value) { Assert (sorted==false, ExcMatrixIsClosed()); + Assert (line != column, + ExcMessage ("Can't constrain a degree of freedom to itself")); std::vector::iterator line_ptr; const std::vector::const_iterator start=lines.begin();