From 113dc77ae5eecb7e7ed87a8ea73b8e29f29dae47 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 12 Aug 2017 17:55:18 -0600 Subject: [PATCH] Do not set active_fe_indices on non-locally owned cells. --- tests/vector_tools/integrate_difference_04_hp_02.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(), -- 2.39.5