From: Martin Kronbichler Date: Thu, 16 Jun 2016 10:12:16 +0000 (+0200) Subject: Avoid undefined symbols with Trilinos but without MPI. X-Git-Tag: v8.5.0-rc1~974^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6190cd27ffa1bf72113b207fa595825cec182073;p=dealii.git Avoid undefined symbols with Trilinos but without MPI. --- 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; }