From b6511b0c24627fb87630c393f55206d7c60b7a68 Mon Sep 17 00:00:00 2001 From: heister Date: Sun, 26 May 2013 21:12:57 +0000 Subject: [PATCH] parallel multigrid, continued git-svn-id: https://svn.dealii.org/trunk@29619 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/multigrid/mg_transfer.templates.h | 2 +- deal.II/include/deal.II/multigrid/multigrid.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), -- 2.39.5