From: Martin Kronbichler Date: Mon, 30 Jun 2014 11:50:56 +0000 (+0000) Subject: Avoid Epetra_MultiVector with 0 vectors X-Git-Tag: v8.2.0-rc1~346 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e94b920f697d0988e27e36e5270adc4d8b09f1a7;p=dealii.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 dummy (constant_modes_dimension); if (constant_modes_dimension > 0)