From 3ca1653af83376a5f5c4e8f71a3ae3bbfe8344cf Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 30 Jun 2014 11:50:56 +0000 Subject: [PATCH] Avoid Epetra_MultiVector with 0 vectors git-svn-id: https://svn.dealii.org/trunk@33102 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/trilinos_precondition.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 dummy (constant_modes_dimension); if (constant_modes_dimension > 0) -- 2.39.5