From: Martin Kronbichler Date: Mon, 7 Sep 2009 07:05:29 +0000 (+0000) Subject: Make sure that destroy_communicator does nothing in case we're using Trilinos without... X-Git-Tag: v8.0.0~7166 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4474e503953539e0fa4e54dc980515408f89915;p=dealii.git Make sure that destroy_communicator does nothing in case we're using Trilinos without MPI. git-svn-id: https://svn.dealii.org/trunk@19407 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/utilities.cc b/deal.II/base/source/utilities.cc index eb5062b970..537d1b60ee 100644 --- a/deal.II/base/source/utilities.cc +++ b/deal.II/base/source/utilities.cc @@ -677,6 +677,7 @@ namespace Utilities // communicator if this whole // thing was created as an MPI // communicator +#ifdef DEAL_II_COMPILER_SUPPORTS_MPI Epetra_MpiComm *mpi_comm = dynamic_cast(&communicator); if (mpi_comm != 0) @@ -685,6 +686,7 @@ namespace Utilities *mpi_comm = Epetra_MpiComm(MPI_COMM_SELF); MPI_Comm_free (&comm); } +#endif }