]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-50: do not copy coarse matrix
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 08:12:15 +0000 (08:12 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 08:12:15 +0000 (08:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@29633 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 7bdde8d208006e9c8a75106c9eaa17d3721c5608..e87ffec2185f9b8ecacabd605ad12802792c5ceb 100644 (file)
@@ -820,8 +820,8 @@ namespace Step50
     // pass it as an argument.
     mg_transfer.build_matrices(mg_dof_handler);
 
-    matrix_t coarse_matrix;
-    coarse_matrix.copy_from (mg_matrices[0]);
+    matrix_t & coarse_matrix = mg_matrices[0];
+    //coarse_matrix.copy_from (mg_matrices[0]);
     //MGCoarseGridHouseholder<double,vector_t> coarse_grid_solver;
     //coarse_grid_solver.initialize (coarse_matrix);
 
@@ -1020,7 +1020,7 @@ namespace Step50
             // static const HyperBallBoundary<dim> boundary;
             // triangulation.set_boundary (0, boundary);
 
-            triangulation.refine_global (3);
+            triangulation.refine_global (1);
           }
         else
           triangulation.refine_global (1);

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.