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

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

index 2cc8643bec34ba4e84f6a244a7deb916ea29e02b..1df0b1fc8f8a0c7c973ddcacfc1bb260376b3993 100644 (file)
@@ -2,7 +2,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2010-2012 by the deal.II authors */
+/*    Copyright (C) 2010-2013 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -517,8 +517,8 @@ namespace Step39
 
     // Now all objects are prepared to hold one sparsity pattern or matrix per
     // level. What's left is setting up the sparsity patterns on each level.
-    for (unsigned int level=mg_sparsity.get_minlevel();
-         level<=mg_sparsity.get_maxlevel(); ++level)
+    for (unsigned int level=mg_sparsity.min_level();
+         level<=mg_sparsity.max_level(); ++level)
       {
         // These are roughly the same lines as above for the global matrix,
         // now for each level.
@@ -690,8 +690,8 @@ namespace Step39
     // as our smoothing method.
     GrowingVectorMemory<Vector<double> > mem;
     typedef PreconditionSOR<SparseMatrix<double> > RELAXATION;
-    MGSmootherRelaxation<SparseMatrix<double>, RELAXATION, Vector<double> >
-    mg_smoother(mem);
+    mg::SmootherRelaxation<RELAXATION, Vector<double> >
+    mg_smoother;
     RELAXATION::AdditionalData smoother_data(1.);
     mg_smoother.initialize(mg_matrix, smoother_data);
 

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.