From 9f0b71c0c3f008489f2d1f2e4d3c719df4d66679 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 7 Sep 2023 14:12:56 -0600 Subject: [PATCH] Avoid using a deprecated function. --- tests/numerics/project_parallel_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/numerics/project_parallel_common.h b/tests/numerics/project_parallel_common.h index 4c91afa755..48ca336f1f 100644 --- a/tests/numerics/project_parallel_common.h +++ b/tests/numerics/project_parallel_common.h @@ -114,8 +114,8 @@ do_project(const parallel::distributed::Triangulation &triangulation, const MPI_Comm mpi_communicator = triangulation.get_communicator(); const IndexSet locally_owned_dofs = dof_handler.locally_owned_dofs(); - IndexSet locally_relevant_dofs; - DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs); + const IndexSet locally_relevant_dofs = + DoFTools::extract_locally_relevant_dofs(dof_handler); AffineConstraints constraints; constraints.reinit(locally_relevant_dofs); -- 2.39.5