]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid multigrid deprecation warnings in step-16/39
authorTimo Heister <timo.heister@gmail.com>
Mon, 27 Mar 2017 19:16:41 +0000 (15:16 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 27 Mar 2017 21:43:19 +0000 (17:43 -0400)
examples/step-16/step-16.cc
examples/step-39/step-39.cc
examples/step-56/step-56.cc

index be65a4500a8c22ed66c5eedf360fb05453975f62..06151f45b434ea68559064b1fd1875ed2d55d17b 100644 (file)
@@ -532,8 +532,7 @@ namespace Step16
 
     // Now, we are ready to set up the V-cycle operator and the multilevel
     // preconditioner.
-    Multigrid<Vector<double> > mg(dof_handler,
-                                  mg_matrix,
+    Multigrid<Vector<double> > mg(mg_matrix,
                                   coarse_grid_solver,
                                   mg_transfer,
                                   mg_smoother,
index b51ba0cad988192999574a0f43e102c4027376d7..f07292967487f820345d68a7eaa6089a1964b914 100644 (file)
@@ -718,7 +718,7 @@ namespace Step39
 
     // Now, we are ready to set up the V-cycle operator and the multilevel
     // preconditioner.
-    Multigrid<Vector<double> > mg(dof_handler, mgmatrix,
+    Multigrid<Vector<double> > mg(mgmatrix,
                                   mg_coarse, mg_transfer,
                                   mg_smoother, mg_smoother);
     // Let us not forget the edge matrices needed because of the adaptive
index 8dc96a876bd43b0f1043958d13f27348f4a0abc8..5fb81c9331dfb7206c9af768fa8b46336473bfe8 100644 (file)
@@ -904,8 +904,7 @@ namespace Step56
         mg::Matrix<Vector<double> > mg_interface_down(mg_interface_matrices);
 
         // Now, we are ready to set up the V-cycle operator and the multilevel preconditioner.
-        Multigrid<Vector<double> > mg(velocity_dof_handler,
-                                      mg_matrix,
+        Multigrid<Vector<double> > mg(mg_matrix,
                                       coarse_grid_solver,
                                       mg_transfer,
                                       mg_smoother,

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.