From: Timo Heister Date: Tue, 26 Jan 2016 09:51:57 +0000 (+0100) Subject: fix the case where we reduce to 1 domain X-Git-Tag: v8.4.0-rc2~51^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aac427ca6f25c588055ea495c821f4e941675c1;p=dealii.git fix the case where we reduce to 1 domain --- diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index 813c4edd33..05ac8aa848 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -57,7 +57,7 @@ namespace SparsityTools sparsity_pattern.n_rows())); // check for an easy return - if (n_partitions == 1) + if (n_partitions == 1 || (sparsity_pattern.n_rows()==1)) { std::fill_n (partition_indices.begin(), partition_indices.size(), 0U); return;