From 3407218bf61fb67b35d10e3f8b24ee182be27826 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 30 Aug 2001 10:00:04 +0000 Subject: [PATCH] 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 --- .../deal.II/include/dofs/dof_constraints.h | 30 +++++++++++-------- deal.II/doc/news/2001/c-3-1.html | 8 +++++ 2 files changed, 26 insertions(+), 12 deletions(-) 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. -- 2.39.5