From 9aac427ca6f25c588055ea495c821f4e941675c1 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 26 Jan 2016 10:51:57 +0100 Subject: [PATCH] fix the case where we reduce to 1 domain --- source/lac/sparsity_tools.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5