]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid Vector::scale
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Aug 2013 14:33:19 +0000 (14:33 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Aug 2013 14:33:19 +0000 (14:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@30421 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/step-14.cc
tests/fail/hp-step-14.cc
tests/lac/block_vector_iterator.cc
tests/lac/complex_block_vector_iterator.cc
tests/lac/vector-vector.cc

index a4a756abc02093bf07f8f1366d31d5c22931f680..fc069944bf702a9619155cd47e39d0963a4785ac 100644 (file)
@@ -1260,7 +1260,7 @@ namespace DualFunctional
     AssertThrow (total_volume > 0,
                  ExcEvaluationPointNotFound(evaluation_point));
 
-    rhs.scale (1./total_volume);
+    rhs /= total_volume;
   }
 
 
index 9ddb438dbc9d6f5b777035318053e119f1ddf4cc..66e12c4090be4cf70a25922e63c3dadf2640b2dc 100644 (file)
@@ -1258,7 +1258,7 @@ namespace DualFunctional
     AssertThrow (total_volume > 0,
                  ExcEvaluationPointNotFound(evaluation_point));
 
-    rhs.scale (1./total_volume);
+    rhs /= total_volume;
   }
 
 
index fc49b7f478d5bd5181f9d124fddb577b08cc0f2d..62b31ba8445cdff3ae950aee4116704c046cad54 100644 (file)
@@ -179,7 +179,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 9b1fd5691819cf64491999a24b980ca3d2db6d1a..d7ede23bff9c2401f228a788614c93b4ce5e0941 100644 (file)
@@ -179,7 +179,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 d8e9ea358082c66c8f6f666076a7f3366171a921..c1fba54258302bae9d803dae17f34f0f66a748ad 100644 (file)
@@ -138,7 +138,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.