]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid use of deprecated function.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 11 Jan 2013 00:25:48 +0000 (00:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 11 Jan 2013 00:25:48 +0000 (00:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@28009 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/block_vector.h

index 2ce6364d1b6b632dff6356138ac425abf500ffdf..5502e1ba7857c4d05ae7c2e9d9213a931c928abf 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -556,7 +556,7 @@ void BlockVector<Number>::scale (const value_type factor)
   Assert (numbers::is_finite(factor), ExcNumberNotFinite());
 
   for (unsigned int i=0; i<this->n_blocks(); ++i)
-    this->components[i].scale(factor);
+    this->components[i] *= factor;
 }
 
 

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.