From: kronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Mon, 30 Jun 2014 11:50:56 +0000 (+0000)
Subject: Avoid Epetra_MultiVector with 0 vectors
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca1653af83376a5f5c4e8f71a3ae3bbfe8344cf;p=dealii-svn.git

Avoid Epetra_MultiVector with 0 vectors

git-svn-id: https://svn.dealii.org/trunk@33102 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/source/lac/trilinos_precondition.cc b/deal.II/source/lac/trilinos_precondition.cc
index 4c42b28e78..e4db7d8632 100644
--- a/deal.II/source/lac/trilinos_precondition.cc
+++ b/deal.II/source/lac/trilinos_precondition.cc
@@ -608,7 +608,8 @@ namespace TrilinosWrappers
     const size_type constant_modes_dimension =
       additional_data.constant_modes.size();
     Epetra_MultiVector distributed_constant_modes (domain_map,
-                                                   constant_modes_dimension);
+                                                   constant_modes_dimension > 0 ?
+                                                   constant_modes_dimension : 1);
     std::vector<double> dummy (constant_modes_dimension);
 
     if (constant_modes_dimension > 0)