From: heister Date: Sat, 4 Jan 2014 09:26:17 +0000 (+0000) Subject: MGTools::make_boundary_list can work on ghost cells too X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9a08188c44d7cb426e1ee619cbb45369b34223;p=dealii-svn.git MGTools::make_boundary_list can work on ghost cells too git-svn-id: https://svn.dealii.org/trunk@32164 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/multigrid/mg_tools.cc b/deal.II/source/multigrid/mg_tools.cc index a9da2451be..0bf94ebb10 100644 --- a/deal.II/source/multigrid/mg_tools.cc +++ b/deal.II/source/multigrid/mg_tools.cc @@ -1213,7 +1213,7 @@ namespace MGTools for (; cell!=endc; ++cell) { if (dof.get_tria().locally_owned_subdomain()!=numbers::invalid_subdomain_id - && cell->level_subdomain_id()!=dof.get_tria().locally_owned_subdomain()) + && cell->level_subdomain_id()==numbers::artificial_subdomain_id) continue; const FiniteElement &fe = cell->get_fe(); const unsigned int level = cell->level(); @@ -1247,7 +1247,7 @@ namespace MGTools endc = dof.end(); for (; cell!=endc; ++cell) if (dof.get_tria().locally_owned_subdomain()==numbers::invalid_subdomain_id - || cell->level_subdomain_id()==dof.get_tria().locally_owned_subdomain()) + || cell->level_subdomain_id()!=numbers::artificial_subdomain_id) for (unsigned int face_no = 0; face_no < GeometryInfo::faces_per_cell; ++face_no) {