]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix documentation.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Mar 2005 19:53:36 +0000 (19:53 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Mar 2005 19:53:36 +0000 (19:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@9977 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.html
deal.II/lac/include/lac/petsc_matrix_base.h

index f879f1f35e874e1eb207ad8b102848328af23d78..a45bc52b747b408a172e707d71bf417dd07b22e1 100644 (file)
@@ -85,6 +85,16 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 <h3>lac</h3>
 
 <ol>
+  <li> <p>
+       Fixed: The <code>PETScWrappers::MatrixBase</code> 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.
+       <br> 
+       (WB, 2005/03/03)
+       </p>
+
   <li> <p>
        New: The <code>SparseMatrix</code> iterators had no <code>operator
        &gt;</code>, only an <code>operator &lt;</code>. The missing operator
index b048daf1ca89454b86fbd3bed0b59ad452141201..647a592758b1d1de11e8692b0aef82215d587de4 100644 (file)
@@ -326,11 +326,18 @@ namespace PETScWrappers
 
                                        /**
                                         * Set the element (<i>i,j</i>)
-                                        * 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>i,j</i>).  Throws
-                                        * an error if the entry does not
-                                        * exist. Still, it is allowed to
-                                        * store zero values in
-                                        * non-existent fields.
+                                        * element (<i>i,j</i>).
+                                       *
+                                       * 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,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.