]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function BlockVector::scale(). 469/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 01:52:40 +0000 (19:52 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 04:46:57 +0000 (22:46 -0600)
doc/news/changes.h
include/deal.II/lac/block_vector.h
include/deal.II/lac/schur_matrix.h

index 6ecc46bec003a61773c4623cc34d9c9d7e079a7e..14734b7dbe137a75190f9c9af4a5ede3b25811cb 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 and
+  - The version of BlockVector::scale and
+    parallel::distributed::Vector::scale,
     parallel::distributed::BlockVector::scale
     function that takes a scalar as argument.
   - GridTools::create_union_triangulation.
index 4e44d69b26e280c5b0956436d35ddfa315812a52..c860d4da517b695ce333d99443551f1a92ae9b07 100644 (file)
@@ -275,16 +275,6 @@ public:
   void reinit (const BlockVector<Number2> &V,
                const bool                 fast=false);
 
-  /**
-   * 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>.
@@ -442,18 +432,6 @@ void BlockVector<Number>::compress (::dealii::VectorOperation::values operation)
 
 
 
-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] *= factor;
-}
-
-
-
 template <typename Number>
 template <class BlockVector2>
 void BlockVector<Number>::scale (const BlockVector2 &v)
index efe8c6421b3f7a21a5f3cd41dadcddf150479775..c7805956149401b4bab9c343a1f0dff8a6e76193 100644 (file)
@@ -271,7 +271,7 @@ double SchurMatrix<MA_inverse, MB, MDt, MC>
            const BlockVector<double> &rhs) const
 {
   vmult(dst, src);
-  dst.scale(-1.);
+  dst *= -1.;
   dst += rhs;
   return dst.l2_norm();
 }

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.