]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove deprecated function calls
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Jan 2013 15:49:04 +0000 (15:49 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Jan 2013 15:49:04 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@28156 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 30c10a64d5351fb78bee90486ddbb7947189cfec..dbf89fd64d5acaa1bb9d3242d7a7714d0e3c7501 100644 (file)
@@ -4,7 +4,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2003-2004, 2006-2012 by the deal.II authors                   */
+/*    Copyright (C) 2003-2004, 2006-2013 by the deal.II authors                   */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -618,7 +618,7 @@ namespace Step16
     // need a smoother on each level. A common choice for this is to use the
     // application of a relaxation method (such as the SOR, Jacobi or
     // Richardson method) or a small number of iterations of a solver method
-    // (such as CG or GMRES). The MGSmootherRelaxation and
+    // (such as CG or GMRES). The mg::SmootherRelaxation and
     // MGSmootherPrecondition classes provide support for these two kinds of
     // smoothers. Here, we opt for the application of a single SOR
     // iteration. To this end, we define an appropriate <code>typedef</code>
@@ -646,9 +646,8 @@ namespace Step16
     // let the multilevel preconditioner make sure that we get a symmetric
     // operator even for nonsymmetric smoothers:
     typedef PreconditionSOR<SparseMatrix<double> > Smoother;
-    GrowingVectorMemory<>   vector_memory;
-    MGSmootherRelaxation<SparseMatrix<double>, Smoother, Vector<double> >
-    mg_smoother(vector_memory);
+    mg::SmootherRelaxation<Smoother, Vector<double> >
+    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.