From: Guido Kanschat Date: Mon, 24 Jun 2013 13:25:09 +0000 (+0000) Subject: new filtered iterator LocallyOwnedLevelCell X-Git-Tag: v8.0.0~244 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa5be1f9a99ac979e7af483d96c73714e22bd11;p=dealii.git new filtered iterator LocallyOwnedLevelCell git-svn-id: https://svn.dealii.org/trunk@29874 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/multigrid/mg_tools.cc b/deal.II/source/multigrid/mg_tools.cc index 07b15f52a4..752b946248 100644 --- a/deal.II/source/multigrid/mg_tools.cc +++ b/deal.II/source/multigrid/mg_tools.cc @@ -589,6 +589,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); // make sparsity pattern for this cell for (unsigned int i=0; i