]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function parallel::distributed::BlockVector::scale().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 01:50:18 +0000 (19:50 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 04:46:56 +0000 (22:46 -0600)
doc/news/changes.h
include/deal.II/lac/parallel_block_vector.h

index adf83f14454eeac8e3ea000c6096ac02ee359a65..6ecc46bec003a61773c4623cc34d9c9d7e079a7e 100644 (file)
@@ -162,7 +162,8 @@ inconvenience this causes.
   - The SolverSelector constructor that takes a VectorMemory argument.
   - The version of parallel::distributed::Vector::compress_finish
     function that takes a boolean as argument.
-  - The version of parallel::distributed::Vector::scale
+  - The version of parallel::distributed::Vector::scale and
+    parallel::distributed::BlockVector::scale
     function that takes a scalar as argument.
   - GridTools::create_union_triangulation.
   - GridTools::extract_boundary_mesh.
index 58b555540ceaad832e6fa7043c4e4ae3a52c8797..87eb823ebd91e4fc749f210923311871f5a3941e 100644 (file)
@@ -400,16 +400,6 @@ namespace parallel
                           const BlockVector<Number> &V,
                           const BlockVector<Number> &W);
 
-      /**
-       * Scale each element of the vector by the given factor.
-       *
-       * This function is deprecated and will be removed in a future version.
-       * Use <tt>operator *=</tt> and <tt>operator /=</tt> instead.
-       *
-       * @deprecated Use <tt>operator*=</tt> instead.
-       */
-      void scale (const value_type factor) DEAL_II_DEPRECATED;
-
       /**
        * Multiply each element of this vector by the corresponding element of
        * <tt>v</tt>.
@@ -986,18 +976,6 @@ namespace parallel
 
 
 
-    template <typename Number>
-    void BlockVector<Number>::scale (const value_type factor)
-    {
-
-      Assert (numbers::is_finite(factor), ExcNumberNotFinite());
-
-      for (size_type i=0; i<this->n_blocks(); ++i)
-        this->components[i].scale(factor);
-    }
-
-
-
     template <typename Number>
     template <class BlockVector2>
     void BlockVector<Number>::scale (const BlockVector2 &v)

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.