From e06f19bb5fd90e409d11c36f17d8f929174887b7 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Mon, 7 Mar 2022 22:32:47 +0100 Subject: [PATCH] Use get_communicator() --- include/deal.II/matrix_free/matrix_free.templates.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 = -- 2.39.5