]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an instance of a comparison that (i) uses the wrong type and (ii) is
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:37:50 +0000 (16:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:37:50 +0000 (16:37 +0000)
almost certainly incorrect (using invalid_subdomain_id instead of
artificial_subdomain_id).

git-svn-id: https://svn.dealii.org/trunk@29211 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 0b8f291bd87457a080b4f832765c536b344c3d7f..f6e3eb2b88d74446debd8b8b765229de747b0072 100644 (file)
@@ -2173,7 +2173,7 @@ namespace internal
                 endc = dof_handler.end(level);
 
                 for (; cell != endc; ++cell)
-                  if (cell->level_subdomain_id() != DoFHandler<dim,spacedim>::invalid_dof_index &&
+                  if (!cell->is_artificial() &&
                       (cell->level_subdomain_id() < tr->locally_owned_subdomain()))
                     {
                       // we found a

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.