From: Martin Kronbichler Date: Thu, 28 Apr 2016 07:07:45 +0000 (+0200) Subject: Fix compilation without MPI X-Git-Tag: v8.5.0-rc1~1071^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=337ca8f0caf4583a548c42d26d2eeda68225cb7d;p=dealii.git Fix compilation without MPI --- diff --git a/include/deal.II/lac/read_write_vector.h b/include/deal.II/lac/read_write_vector.h index 39b4d25a1f..695f380400 100644 --- a/include/deal.II/lac/read_write_vector.h +++ b/include/deal.II/lac/read_write_vector.h @@ -476,7 +476,7 @@ namespace LinearAlgebra */ void resize_val (const size_type new_allocated_size); -#ifdef DEAL_II_WITH_TRILINOS +#if defined(DEAL_II_WITH_TRILINOS) && defined(DEAL_II_WITH_MPI) /** * Return a EpetraWrappers::Communication pattern and store it for future * use. diff --git a/include/deal.II/lac/read_write_vector.templates.h b/include/deal.II/lac/read_write_vector.templates.h index 28ce43d8d6..6e6e124610 100644 --- a/include/deal.II/lac/read_write_vector.templates.h +++ b/include/deal.II/lac/read_write_vector.templates.h @@ -173,7 +173,7 @@ namespace LinearAlgebra -#ifdef DEAL_II_WITH_TRILINOS +#if defined(DEAL_II_WITH_TRILINOS) && defined(DEAL_II_WITH_MPI) template void ReadWriteVector::import(const Epetra_MultiVector &multivector, @@ -315,7 +315,7 @@ namespace LinearAlgebra -#ifdef DEAL_II_WITH_TRILINOS +#if defined(DEAL_II_WITH_TRILINOS) && defined(DEAL_II_WITH_MPI) template EpetraWrappers::CommunicationPattern ReadWriteVector::create_epetra_comm_pattern(const IndexSet &source_index_set,