From 6190cd27ffa1bf72113b207fa595825cec182073 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 16 Jun 2016 12:12:16 +0200 Subject: [PATCH] Avoid undefined symbols with Trilinos but without MPI. --- include/deal.II/lac/la_parallel_vector.templates.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index 0784ff10ee..7e5d2e5cc1 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -458,6 +458,7 @@ namespace LinearAlgebra Vector & Vector::operator = (const TrilinosWrappers::MPI::Vector &trilinos_vec) { +#ifdef DEAL_II_WITH_MPI IndexSet combined_set = partitioner->locally_owned_range(); combined_set.add_indices(partitioner->ghost_indices()); ReadWriteVector rw_vector(combined_set); @@ -466,6 +467,9 @@ namespace LinearAlgebra if (vector_is_ghosted || trilinos_vec.has_ghost_elements()) update_ghost_values(); +#else + AssertThrow(false, ExcNotImplemented()); +#endif return *this; } -- 2.39.5