From: wolf Date: Thu, 30 Aug 2001 10:00:04 +0000 (+0000) Subject: Dont throw an exception any more of we enter ConstraintMatrix::close and the matrix... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3407218bf61fb67b35d10e3f8b24ee182be27826;p=dealii-svn.git Dont throw an exception any more of we enter ConstraintMatrix::close and the matrix is closed already. Simply return then. git-svn-id: https://svn.dealii.org/trunk@4923 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 ead4f6daf0..e125261517 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.h @@ -161,20 +161,26 @@ class ConstraintMatrix : public Subscriptor const std::vector > &col_val_pairs); /** - * Close the filling of entries. Since the - * lines of a matrix of this type are - * usually filled in an arbitrary order and - * since we do not want to use associative - * constainers to store the lines, we need - * to sort the lines and within the lines - * the columns before usage of the matrix. - * This is done through this function. + * Close the filling of + * entries. Since the lines of a + * matrix of this type are + * usually filled in an arbitrary + * order and since we do not want + * to use associative constainers + * to store the lines, we need to + * sort the lines and within the + * lines the columns before usage + * of the matrix. This is done + * through this function. * - * Also, zero entries are discarded, since - * they are not needed. + * Also, zero entries are + * discarded, since they are not + * needed. * - * After closing, no more entries are - * accepted. + * After closing, no more entries + * are accepted. If the object + * was already closed, then this + * function returns immediately. */ void close (); diff --git a/deal.II/doc/news/2001/c-3-1.html b/deal.II/doc/news/2001/c-3-1.html index 47587d8f4a..b81d6ad75f 100644 --- a/deal.II/doc/news/2001/c-3-1.html +++ b/deal.II/doc/news/2001/c-3-1.html @@ -573,6 +573,14 @@ documentation, etc.

deal.II

    +
  1. + New: ConstraintMatrix::close + now simply returns instead of throwing an exception, if the + matrix was already closed. +
    + (WB 2001/08/30) +

    +
  2. New: Member function ConstraintMatrix::is_identity_constrained.