]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using a deprecated function. 15967/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Sep 2023 20:12:56 +0000 (14:12 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Sep 2023 23:24:25 +0000 (17:24 -0600)
tests/numerics/project_parallel_common.h

index 4c91afa75503e9d4e8c34b5c78b372b10a451286..48ca336f1fb6aad473fb01a5aeb8358d88ee8b30 100644 (file)
@@ -114,8 +114,8 @@ do_project(const parallel::distributed::Triangulation<dim> &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<double> constraints;
   constraints.reinit(locally_relevant_dofs);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.