From: Wolfgang Bangerth Date: Fri, 7 Aug 2009 18:30:07 +0000 (+0000) Subject: Fix a few more problems that happen in MPI mode. X-Git-Tag: v8.0.0~7365 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef15c9638569b502c13e60e7d3fa025f1d1dd0c0;p=dealii.git Fix a few more problems that happen in MPI mode. git-svn-id: https://svn.dealii.org/trunk@19203 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/trilinos_sparsity_pattern.cc b/deal.II/lac/source/trilinos_sparsity_pattern.cc index 584903ce19..9e68889300 100755 --- a/deal.II/lac/source/trilinos_sparsity_pattern.cc +++ b/deal.II/lac/source/trilinos_sparsity_pattern.cc @@ -83,7 +83,8 @@ namespace TrilinosWrappers SparsityPattern::SparsityPattern () : #ifdef DEAL_II_COMPILER_SUPPORTS_MPI - communicator (Utilities::Trilinos::duplicate_communicator (MPI_COMM_SELF)), + communicator (Utilities::Trilinos:: + duplicate_communicator (Epetra_MpiComm(MPI_COMM_SELF))), #else communicator (new Epetra_SerialComm()), #endif @@ -198,7 +199,7 @@ namespace TrilinosWrappers const unsigned int n_entries_per_row) : #ifdef DEAL_II_COMPILER_SUPPORTS_MPI - communicator (Utilities::Trilinos::duplicate_communicator (MPI_COMM_SELF)), + communicator (Utilities::Trilinos::duplicate_communicator (Epetra_MpiComm(MPI_COMM_SELF))), #else communicator (new Epetra_SerialComm()), #endif @@ -216,7 +217,7 @@ namespace TrilinosWrappers const std::vector &n_entries_per_row) : #ifdef DEAL_II_COMPILER_SUPPORTS_MPI - communicator (Utilities::Trilinos::duplicate_communicator (MPI_COMM_SELF)), + communicator (Utilities::Trilinos::duplicate_communicator (Epetra_MpiComm(MPI_COMM_SELF))), #else communicator (new Epetra_SerialComm()), #endif