From 8071d13de6ff21254a3fc289da83de2180aae579 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 22 Aug 2013 14:33:19 +0000 Subject: [PATCH] Avoid Vector::scale git-svn-id: https://svn.dealii.org/trunk@30421 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/step-14.cc | 2 +- tests/fail/hp-step-14.cc | 2 +- tests/lac/block_vector_iterator.cc | 2 +- tests/lac/complex_block_vector_iterator.cc | 2 +- tests/lac/vector-vector.cc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/bits/step-14.cc b/tests/bits/step-14.cc index a4a756abc0..fc069944bf 100644 --- a/tests/bits/step-14.cc +++ b/tests/bits/step-14.cc @@ -1260,7 +1260,7 @@ namespace DualFunctional AssertThrow (total_volume > 0, ExcEvaluationPointNotFound(evaluation_point)); - rhs.scale (1./total_volume); + rhs /= total_volume; } diff --git a/tests/fail/hp-step-14.cc b/tests/fail/hp-step-14.cc index 9ddb438dbc..66e12c4090 100644 --- a/tests/fail/hp-step-14.cc +++ b/tests/fail/hp-step-14.cc @@ -1258,7 +1258,7 @@ namespace DualFunctional AssertThrow (total_volume > 0, ExcEvaluationPointNotFound(evaluation_point)); - rhs.scale (1./total_volume); + rhs /= total_volume; } diff --git a/tests/lac/block_vector_iterator.cc b/tests/lac/block_vector_iterator.cc index fc49b7f478..62b31ba844 100644 --- a/tests/lac/block_vector_iterator.cc +++ b/tests/lac/block_vector_iterator.cc @@ -179,7 +179,7 @@ void test () std::transform (v1.begin(), v1.end(), v2.begin(), std::bind2nd (std::multiplies(), 2.0)); - v2.scale (1./2.); + v2 *= 1./2.; deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl; diff --git a/tests/lac/complex_block_vector_iterator.cc b/tests/lac/complex_block_vector_iterator.cc index 9b1fd56918..d7ede23bff 100644 --- a/tests/lac/complex_block_vector_iterator.cc +++ b/tests/lac/complex_block_vector_iterator.cc @@ -179,7 +179,7 @@ void test () std::transform (v1.begin(), v1.end(), v2.begin(), std::bind2nd (std::multiplies >(), 2.0)); - v2.scale (std::complex(1./2.)); + v2 *= std::complex(1./2.); deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl; diff --git a/tests/lac/vector-vector.cc b/tests/lac/vector-vector.cc index d8e9ea3580..c1fba54258 100644 --- a/tests/lac/vector-vector.cc +++ b/tests/lac/vector-vector.cc @@ -138,7 +138,7 @@ void check_vectors (Vector &d1, Vector &d2) d1.sadd (2, 2, d2, 2, d3); print (d1); - d1.scale (4.); + d1 *= 4.; print (d1); deallog << "equ" << std::endl; -- 2.39.5