]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not set active_fe_indices on non-locally owned cells.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 12 Aug 2017 23:55:18 +0000 (17:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 13 Aug 2017 00:17:10 +0000 (18:17 -0600)
tests/vector_tools/integrate_difference_04_hp_02.cc

index 2c69e4e71b57ed9706ebbfcaa9d7b1a13dbda80f..4e1cf5d7b69588f148f8075faa4ebde683c7632a 100644 (file)
@@ -83,8 +83,9 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
 
   // assign FEs mostly randomly to each cell
   for (auto cell : dofh.active_cell_iterators())
-    cell->set_active_fe_index (cell->active_cell_index() %
-                               fe.size());
+    if (cell->is_locally_owned())
+      cell->set_active_fe_index (cell->active_cell_index() %
+                                 fe.size());
   dofh.distribute_dofs(fe);
 
   TrilinosWrappers::MPI::Vector interpolated(dofh.locally_owned_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.