]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
MGTools::make_boundary_list can work on ghost cells too
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 4 Jan 2014 09:26:17 +0000 (09:26 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 4 Jan 2014 09:26:17 +0000 (09:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@32164 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_tools.cc

index a9da2451be3d470cb745a3b225f5ef32ed522042..0bf94ebb10f20d36538a2ed15114d173e63095f2 100644 (file)
@@ -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<dim> &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<dim>::faces_per_cell;
                  ++face_no)
               {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.