From: Wolfgang Bangerth Date: Mon, 18 Sep 2006 19:57:12 +0000 (+0000) Subject: Add an assertion X-Git-Tag: v8.0.0~11049 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a5fb34c977e7b7bcf99d288a19909f63274497;p=dealii.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();