From: Wolfgang Bangerth Date: Sat, 12 Aug 2017 23:55:18 +0000 (-0600) Subject: Do not set active_fe_indices on non-locally owned cells. X-Git-Tag: v9.0.0-rc1~1279^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113dc77ae5eecb7e7ed87a8ea73b8e29f29dae47;p=dealii.git Do not set active_fe_indices on non-locally owned cells. --- diff --git a/tests/vector_tools/integrate_difference_04_hp_02.cc b/tests/vector_tools/integrate_difference_04_hp_02.cc index 2c69e4e71b..4e1cf5d7b6 100644 --- a/tests/vector_tools/integrate_difference_04_hp_02.cc +++ b/tests/vector_tools/integrate_difference_04_hp_02.cc @@ -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(),