]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make sure that destroy_communicator does nothing in case we're using Trilinos without...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Sep 2009 07:05:29 +0000 (07:05 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Sep 2009 07:05:29 +0000 (07:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@19407 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/utilities.cc

index eb5062b9708d7f2474b3eccb649fe7b205a323a8..537d1b60ee784e89321b424e41331fd5a7a6ef39 100644 (file)
@@ -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<Epetra_MpiComm *>(&communicator);
       if (mpi_comm != 0)
@@ -685,6 +686,7 @@ namespace Utilities
          *mpi_comm = Epetra_MpiComm(MPI_COMM_SELF);
          MPI_Comm_free (&comm);
        }
+#endif
     }
 
     

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.