From 96b202a9e19a8fc2d0a0942b6926517286bb7d38 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 18 Sep 2006 19:57:12 +0000 Subject: [PATCH] Add an assertion git-svn-id: https://svn.dealii.org/trunk@13923 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_constraints.h | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5