From cce50be76f2cb84be55f592ab6cee48629b90100 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Thu, 2 Dec 2021 11:52:09 -0700 Subject: [PATCH] Fix test `mpi/hp_step-4`. --- tests/mpi/hp_step-4.cc | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/mpi/hp_step-4.cc b/tests/mpi/hp_step-4.cc index dd5c51cb17..e06052b03f 100644 --- a/tests/mpi/hp_step-4.cc +++ b/tests/mpi/hp_step-4.cc @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -199,15 +200,19 @@ namespace Step4 #ifdef DEBUG // We did not think about hp-constraints on ghost cells yet. // Thus, we are content with verifying their consistency for now. + const std::vector locally_owned_dofs_per_processor = + Utilities::MPI::all_gather(communicator, + dof_handler.locally_owned_dofs()); + IndexSet locally_active_dofs; DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs); - AssertThrow(constraints.is_consistent_in_parallel( - dof_handler.locally_owned_dofs_per_processor(), - locally_active_dofs, - communicator, - /*verbose=*/true), - ExcMessage( - "AffineConstraints object contains inconsistencies!")); + + AssertThrow( + constraints.is_consistent_in_parallel(locally_owned_dofs_per_processor, + locally_active_dofs, + communicator, + /*verbose=*/true), + ExcMessage("AffineConstraints object contains inconsistencies!")); #endif constraints.close(); -- 2.39.5