]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function Vector::scale.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 8 Jan 2015 22:31:41 +0000 (16:31 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 10 Jan 2015 22:19:44 +0000 (16:19 -0600)
doc/news/changes.h
include/deal.II/lac/eigen.h
include/deal.II/lac/vector.h
tests/base/polynomial_lagrange_ops.cc
tests/lac/block_vector_iterator.cc
tests/lac/complex_block_vector_iterator.cc
tests/lac/vector-vector.cc

index 48ddc448aabd6c8dfb8532328332830e31b2d17b..7e155f1eda2e03ee43f83ff620ee3529e37eefb5 100644 (file)
@@ -116,6 +116,7 @@ inconvenience this causes.
   the <code>cell_normal_vector</code> functions were replaced by
   <code>normal_vector</code> ones. In all cases, the new functions
   have been around for a while.
+- Vector::scale.
 
 <!-- ----------- GENERAL IMPROVEMENTS ----------------- -->
 
index b6489b0c3c4d06be9bfe4f3bfcd9f697e8837afc..d3868669aebff7857c2b57ec30a2814c2250820f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -248,7 +248,7 @@ EigenPower<VECTOR>::solve (double       &value,
 
   double length = x.l2_norm ();
   double old_length = 0.;
-  x.scale(1./length);
+  x *= 1./length;
 
   A.vmult (y,x);
 
@@ -356,7 +356,7 @@ EigenInverse<VECTOR>::solve (double       &value,
   double length = x.l2_norm ();
   double old_value = value;
 
-  x.scale(1./length);
+  x *= 1./length;
 
   // Main loop
   double res = -std::numeric_limits<double>::max();
index 176a7524644d9a8fcf3ae1db5cf5f5eefd1aed22..0b14aac125e1f82d2aa49f091ece7a45872e5f18 100644 (file)
@@ -705,17 +705,6 @@ public:
              const Number          c,
              const Vector<Number> &X);
 
-  /**
-   * Scale each element of the vector by the given factor.
-   *
-   * @deprecated This function is deprecated and will be removed in a future
-   * version. Use <tt>operator *=</tt> and <tt>operator /=</tt> instead.
-   */
-  void scale (const Number factor) DEAL_II_DEPRECATED
-  {
-    this->operator *= (factor);
-  }
-
   /**
    * Scale each element of the vector by a constant value.
    *
index 8440b752e55116cec7c5020cc45761c35b49152c..553160c699ca1dce5d09c510b8410dbfc647746d 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2011 - 2013 by the deal.II authors
+// Copyright (C) 2011 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
index 15f8f67ccb4508f8fa90e3f0a3b99d45f4ea877c..50e3bd99f0d809789182d0788e6b93d4bd5d3790 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -178,7 +178,7 @@ void test ()
       std::transform (v1.begin(), v1.end(), v2.begin(),
                       std::bind2nd (std::multiplies<double>(),
                                     2.0));
-      v2.scale (1./2.);
+      v2 *= 1./2;
       deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
 
 
index ea2db8150ea07bb39166421d2f8ac24b4130e651..06c9cda6372c1c78b210b8f92ea7113283f01ad5 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -178,7 +178,7 @@ void test ()
       std::transform (v1.begin(), v1.end(), v2.begin(),
                       std::bind2nd (std::multiplies<std::complex<double> >(),
                                     2.0));
-      v2.scale (std::complex<double>(1./2.));
+      v2 *= std::complex<double>(1./2.);
       deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
 
 
index 788b16974c14d71519b726ecba8d2c21c7c849ec..ad40cbc574fa4f8539eceab0fb83d6622d42c8a2 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1998 - 2013 by the deal.II authors
+// Copyright (C) 1998 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -137,7 +137,7 @@ void check_vectors (Vector<number1> &d1, Vector<number2> &d2)
   d1.sadd (2, 2, d2, 2, d3);
   print (d1);
 
-  d1.scale (4.);
+  d1 *= 4.;
   print (d1);
 
   deallog << "equ" << std::endl;

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.