]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use get_communicator() 13507/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 7 Mar 2022 21:32:47 +0000 (22:32 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 7 Mar 2022 21:32:47 +0000 (22:32 +0100)
include/deal.II/matrix_free/matrix_free.templates.h

index 7a341ee05e227edef5ff3d1ec9cc75c1b7382abd..51a6b0a12057c0ab4ef41340be29a11d488439bb 100644 (file)
@@ -423,12 +423,7 @@ MatrixFree<dim, Number, VectorizedArrayType>::internal_reinit(
       // set variables that are independent of FE
       if (Utilities::MPI::job_supports_mpi() == true)
         {
-          const parallel::TriangulationBase<dim> *dist_tria =
-            dynamic_cast<const parallel::TriangulationBase<dim> *>(
-              &(dof_handler[0]->get_triangulation()));
-          task_info.communicator = dist_tria != nullptr ?
-                                     dist_tria->get_communicator() :
-                                     MPI_COMM_SELF;
+          task_info.communicator = dof_handler[0]->get_communicator();
           task_info.my_pid =
             Utilities::MPI::this_mpi_process(task_info.communicator);
           task_info.n_procs =

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.