From: Marc Fehling Date: Thu, 2 Dec 2021 18:52:09 +0000 (-0700) Subject: Fix test `mpi/hp_step-4`. X-Git-Tag: v9.4.0-rc1~775^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce50be76f2cb84be55f592ab6cee48629b90100;p=dealii.git Fix test `mpi/hp_step-4`. --- 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();