From: Peter Munch Date: Mon, 7 Mar 2022 21:32:47 +0000 (+0100) Subject: Use get_communicator() X-Git-Tag: v9.4.0-rc1~403^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13507%2Fhead;p=dealii.git Use get_communicator() --- diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 7a341ee05e..51a6b0a120 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -423,12 +423,7 @@ MatrixFree::internal_reinit( // set variables that are independent of FE if (Utilities::MPI::job_supports_mpi() == true) { - const parallel::TriangulationBase *dist_tria = - dynamic_cast *>( - &(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 =