From: wolf 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53e8b2a3796dfb3f84a92715c3279bdbab911b06;p=dealii-svn.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(),