]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix another spot where we ask an inactive cell for the subdomain
authorTimo Heister <timo.heister@gmail.com>
Sat, 1 Jun 2013 20:24:19 +0000 (20:24 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sat, 1 Jun 2013 20:24:19 +0000 (20:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@29723 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index dab901128cfc70d485441424456f1ccca2308636..c86fc1dc3dda139e53b6ee414ae83dd2eb556daf 100644 (file)
@@ -609,8 +609,10 @@ namespace DoFTools
                       // is not locally owned - otherwise, we touch each
                       // face twice and hence put the indices the other way
                       // around
-                      if (cell->neighbor(face)->subdomain_id() !=
-                          cell->subdomain_id())
+                      if (!cell->neighbor(face)->active()
+                          ||
+                          (cell->neighbor(face)->subdomain_id() !=
+                          cell->subdomain_id()))
                         constraints.add_entries_local_to_global
                         (dofs_on_other_cell, dofs_on_this_cell,
                          sparsity, keep_constrained_dofs);

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.