From 337ca8f0caf4583a548c42d26d2eeda68225cb7d Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 28 Apr 2016 09:07:45 +0200 Subject: [PATCH] Fix compilation without MPI --- include/deal.II/lac/read_write_vector.h | 2 +- include/deal.II/lac/read_write_vector.templates.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5