From: Wolfgang Bangerth Date: Thu, 3 Mar 2005 19:53:36 +0000 (+0000) Subject: Fix documentation. X-Git-Tag: v8.0.0~14544 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1458e1f7c63e3c77cbcc2e797af8fc176e2b10;p=dealii.git Fix documentation. git-svn-id: https://svn.dealii.org/trunk@9977 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/changes.html b/deal.II/doc/news/changes.html index f879f1f35e..a45bc52b74 100644 --- a/deal.II/doc/news/changes.html +++ b/deal.II/doc/news/changes.html @@ -85,6 +85,16 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

lac

    +
  1. + Fixed: The PETScWrappers::MatrixBase class + documented that adding or setting a value that hasn't been in + the sparsity pattern before will lead to an exception being + thrown. This is of course wrong: PETSc allocates matrix entries + dynamically, as needed. The documentation is now fixed. +
    + (WB, 2005/03/03) +

    +
  2. New: The SparseMatrix iterators had no operator >, only an operator <. The missing operator diff --git a/deal.II/lac/include/lac/petsc_matrix_base.h b/deal.II/lac/include/lac/petsc_matrix_base.h index b048daf1ca..647a592758 100644 --- a/deal.II/lac/include/lac/petsc_matrix_base.h +++ b/deal.II/lac/include/lac/petsc_matrix_base.h @@ -326,11 +326,18 @@ namespace PETScWrappers /** * Set the element (i,j) - * to @p value. Throws an - * error if the entry does not - * exist. Still, it is allowed to - * store zero values in - * non-existent fields. + * to @p value. + * + * If the present object (from + * a derived class of this one) + * happens to be a sparse + * matrix, then this function + * adds a new entry to the + * matrix if it didn't exist + * before, very much in + * contrast to the SparseMatrix + * class which throws an error + * if the entry does not exist. */ void set (const unsigned int i, const unsigned int j, @@ -338,11 +345,18 @@ namespace PETScWrappers /** * Add @p value to the - * element (i,j). Throws - * an error if the entry does not - * exist. Still, it is allowed to - * store zero values in - * non-existent fields. + * element (i,j). + * + * If the present object (from + * a derived class of this one) + * happens to be a sparse + * matrix, then this function + * adds a new entry to the + * matrix if it didn't exist + * before, very much in + * contrast to the SparseMatrix + * class which throws an error + * if the entry does not exist. */ void add (const unsigned int i, const unsigned int j,