]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid use of deprecated constructor.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 02:47:35 +0000 (02:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 02:47:35 +0000 (02:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@28507 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-50/step-50.cc

index a5a69b65f198ef0d355dec893e8fe3f23fafc4c0..640c4b38be6c8e7dec5bad9573d790e7a622ee58 100644 (file)
@@ -4,7 +4,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors                   */
+/*    Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 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     */
@@ -817,15 +817,6 @@ namespace Step50
     // appropriate <code>typedef</code> and
     // then setup a smoother object.
     //
-    // Since this smoother needs temporary
-    // vectors to store intermediate results,
-    // we need to provide a VectorMemory
-    // object. Since these vectors will be
-    // reused over and over, the
-    // GrowingVectorMemory is more time
-    // efficient than the PrimitiveVectorMemory
-    // class in the current case.
-    //
     // The last step is to initialize the
     // smoother object with our level matrices
     // and to set some smoothing parameters.
@@ -855,9 +846,7 @@ namespace Step50
     // symmetric operator even for nonsymmetric
     // smoothers:
     typedef TrilinosWrappers::PreconditionSOR Smoother;
-    GrowingVectorMemory<vector_t>   vector_memory;
-    MGSmootherPrecondition<matrix_t, Smoother, vector_t >
-    mg_smoother(vector_memory);
+    MGSmootherPrecondition<matrix_t, Smoother, vector_t> mg_smoother;
     mg_smoother.initialize(mg_matrices);
     mg_smoother.set_steps(2);
     mg_smoother.set_symmetric(true);

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.