From: kanschat Date: Mon, 24 Jun 2013 13:38:21 +0000 (+0000) Subject: localize flux sparsity pattern on refinement edges X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4cd87d68463b082ed9f37b6e5d9e93e9c80db5b;p=dealii-svn.git localize flux sparsity pattern on refinement edges git-svn-id: https://svn.dealii.org/trunk@29876 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;