]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FIX: hp::DoFHandler::distribute_dofs on p::d::Triangulation.
authorMarc Fehling <marc.fehling@gmx.net>
Fri, 20 Jul 2018 18:22:48 +0000 (12:22 -0600)
committerMarc Fehling <marc.fehling@gmx.net>
Fri, 20 Jul 2018 18:41:45 +0000 (12:41 -0600)
doc/news/changes/minor/20180720MarcFehling [new file with mode: 0644]
source/hp/dof_handler.cc

diff --git a/doc/news/changes/minor/20180720MarcFehling b/doc/news/changes/minor/20180720MarcFehling
new file mode 100644 (file)
index 0000000..aac80a2
--- /dev/null
@@ -0,0 +1,5 @@
+Fixed: hp::DoFHandler::distribute_dofs() now works on
+parallel::distributed::Triangulation<3> objects that
+contain artificial cells.
+<br>
+(Marc Fehling, 2018/07/20)
index 2b8f9c6552be8d9fba432056ab7a8d37674498db..583be7eb3a0c20f862132367551c0501f6a06b0d 100644 (file)
@@ -705,10 +705,12 @@ namespace internal
                      cell = dof_handler.begin_active();
                    cell != dof_handler.end();
                    ++cell)
-                for (unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell;
-                     ++l)
-                  line_fe_association[cell->active_fe_index()]
-                                     [cell->line_index(l)] = true;
+                if (!cell->is_artificial())
+                  for (unsigned int l = 0;
+                       l < GeometryInfo<dim>::lines_per_cell;
+                       ++l)
+                    line_fe_association[cell->active_fe_index()]
+                                       [cell->line_index(l)] = true;
 
               // first check which of the lines is used at all,
               // i.e. is associated with a finite element. we do this

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.