]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
parallel multigrid, continued
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 May 2013 21:12:57 +0000 (21:12 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 May 2013 21:12:57 +0000 (21:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@29619 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_transfer.templates.h
deal.II/include/deal.II/multigrid/multigrid.h

index a854e92e76269e229eda3593ac51e765f3a81020..702a4ee60130fa026cbc5a36f440f6ffb4966ea2 100644 (file)
@@ -151,7 +151,7 @@ MGTransferPrebuilt<VECTOR>::copy_to_mg (
 {
   reinit_vector(mg_dof_handler, component_to_block_map, dst);
   bool first = true;
-  for (unsigned int level=mg_dof_handler.get_tria().n_levels(); level != 0;)
+  for (unsigned int level=mg_dof_handler.get_tria().n_global_levels(); level != 0;)
     {
       --level;
       VECTOR &dst_level = dst[level];
index 4116300ad5c071abc52bf401585b9743376690ee..24ae9fb2d0c90df77829149b0a9f56a135773aaf 100644 (file)
@@ -600,7 +600,7 @@ Multigrid<VECTOR>::Multigrid (const DoFHandler<dim> &mg_dof_handler,
   :
   cycle_type(cycle),
   minlevel(0),
-  maxlevel(mg_dof_handler.get_tria().n_levels()-1),
+  maxlevel(mg_dof_handler.get_tria().n_global_levels()-1),
   defect(minlevel,maxlevel),
   solution(minlevel,maxlevel),
   t(minlevel,maxlevel),

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.