From: Wolfgang Bangerth Date: Thu, 30 Aug 2001 10:04:27 +0000 (+0000) Subject: Dont throw an exception any more if we call close and the matrix is X-Git-Tag: v8.0.0~18874 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006a3feee4610fd1f74bef1f20ef67c77c887a29;p=dealii.git Dont throw an exception any more if we call close and the matrix is already close. git-svn-id: https://svn.dealii.org/trunk@4924 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_constraints.cc b/deal.II/deal.II/source/dofs/dof_constraints.cc index 3c281f6c1a..4353da7028 100644 --- a/deal.II/deal.II/source/dofs/dof_constraints.cc +++ b/deal.II/deal.II/source/dofs/dof_constraints.cc @@ -184,8 +184,9 @@ void ConstraintMatrix::add_entries (const unsigned int li void ConstraintMatrix::close () { - Assert (sorted==false, ExcMatrixIsClosed()); - + if (sorted == true) + return; + // sort the entries in the different lines // and strip zero entries std::vector::iterator line = lines.begin(),