From 591ff3dde49dccfd80ac4446b2e990c207b51526 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 24 Jun 2013 13:38:21 +0000 Subject: [PATCH] localize flux sparsity pattern on refinement edges git-svn-id: https://svn.dealii.org/trunk@29876 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/multigrid/mg_tools.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deal.II/source/multigrid/mg_tools.cc b/deal.II/source/multigrid/mg_tools.cc index 752b946248..b5e79e3f9e 100644 --- a/deal.II/source/multigrid/mg_tools.cc +++ b/deal.II/source/multigrid/mg_tools.cc @@ -654,6 +654,8 @@ namespace MGTools endc = dof.end(level); for (; cell!=endc; ++cell) { + if (!cell->is_locally_owned_on_level()) continue; + cell->get_mg_dof_indices (dofs_on_this_cell); // Loop over all interior neighbors for (unsigned int face = 0; @@ -742,7 +744,9 @@ namespace MGTools for (; cell!=endc; ++cell) { - cell->get_mg_dof_indices (dofs_on_this_cell); + if (!cell->is_locally_owned_on_level()) continue; + + cell->get_mg_dof_indices (dofs_on_this_cell); // make sparsity pattern for this cell for (unsigned int i=0; iis_locally_owned_on_level()) continue; + cell->get_mg_dof_indices (dofs_on_this_cell); // Loop over all interior neighbors for (unsigned int face = 0; -- 2.39.5