From: heister Date: Sun, 26 May 2013 21:12:57 +0000 (+0000) Subject: parallel multigrid, continued X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6511b0c24627fb87630c393f55206d7c60b7a68;p=dealii-svn.git parallel multigrid, continued git-svn-id: https://svn.dealii.org/trunk@29619 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/multigrid/mg_transfer.templates.h b/deal.II/include/deal.II/multigrid/mg_transfer.templates.h index a854e92e76..702a4ee601 100644 --- a/deal.II/include/deal.II/multigrid/mg_transfer.templates.h +++ b/deal.II/include/deal.II/multigrid/mg_transfer.templates.h @@ -151,7 +151,7 @@ MGTransferPrebuilt::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]; diff --git a/deal.II/include/deal.II/multigrid/multigrid.h b/deal.II/include/deal.II/multigrid/multigrid.h index 4116300ad5..24ae9fb2d0 100644 --- a/deal.II/include/deal.II/multigrid/multigrid.h +++ b/deal.II/include/deal.II/multigrid/multigrid.h @@ -600,7 +600,7 @@ Multigrid::Multigrid (const DoFHandler &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),