From 07f0fdf44cf02dd61a607794f17952ac402a4a49 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 12 May 2004 15:53:01 +0000 Subject: [PATCH] More for the release notes. git-svn-id: https://svn.dealii.org/trunk@9239 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/c-4-0.html | 49 +++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/deal.II/doc/news/c-4-0.html b/deal.II/doc/news/c-4-0.html index cf5fce0dfa..186cb57465 100644 --- a/deal.II/doc/news/c-4-0.html +++ b/deal.II/doc/news/c-4-0.html @@ -31,6 +31,16 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

Incompatibilities

+

+Following are a few modifications to the library that unfortunately +are incompatible with previous versions of the library, but which we +deem necessary for the future maintainability of the +library. Unfortunately, some of these changes will require +modifications to application programs. We apologize for the +inconvenience this causes. +

+ +
  1. Removed: All the matrix classes have functions reinit that are used to resize the @@ -50,20 +60,33 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK (WB 2004/05/10)

    -
  2. Removed: All the vector and block vector classes had a member - function clear which simply resets all - values of the vector to zero. It did not change the size of the vector, - though. This was confusing, since the standard C++ container classes - implement the semantics that the clear - functions delete all entries of the containers, i.e. resize it to zero, +

  3. Removed: All the vector and block vector classes as well as + the FullMatrix class (the latter + through its Table base class) had a + member function clear which simply + resets all values of the vector or matrix to zero. It did not + change the size of the object, though. This was confusing, + since the standard C++ container classes implement the + semantics that the clear functions + delete all entries of the containers, i.e. resize it to zero, and we implemented similar semantics also for the SparseMatrixDoFHandler, - ConstraintMatrix and various other - classes. To avoid this confusion in the future, the clear function has been dropped from the - interface of the vector classes. To set all elements of a vector to - zero without changing its size, the recommended way is to use the more - obvious notation v=0. + class="class">SparseMatrix, DoFHandler, ConstraintMatrix and various other + classes. +
    + To avoid this confusion in the future, the clear functions have been dropped from + the interface of the vector and full matrix classes, and the + remaining instances where deal.II classes have a function of + that name really mean that the object is reset to its virginial + state. To set all + elements of a vector to zero without changing its size, the + recommended way is to use the more obvious notation v=0, while the full matrix class now has + a function FullMatrix::set_zero(). To + reset the elements of a table over arbitrary objects, use + Table::reset_values().
    (WB 2004/05/10)

    -- 2.39.5