]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid undefined symbols with Trilinos but without MPI. 2688/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 16 Jun 2016 10:12:16 +0000 (12:12 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 16 Jun 2016 10:12:16 +0000 (12:12 +0200)
include/deal.II/lac/la_parallel_vector.templates.h

index 0784ff10ee327fcaaaa3e1b940f88eacaac17bd8..7e5d2e5cc1840a5858b2b4d6c2b20629d5eee9ae 100644 (file)
@@ -458,6 +458,7 @@ namespace LinearAlgebra
     Vector<Number> &
     Vector<Number>::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<Number> 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;
     }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.