]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix the case where we reduce to 1 domain
authorTimo Heister <timo.heister@gmail.com>
Tue, 26 Jan 2016 09:51:57 +0000 (10:51 +0100)
committerTimo Heister <timo.heister@gmail.com>
Tue, 26 Jan 2016 09:51:57 +0000 (10:51 +0100)
source/lac/sparsity_tools.cc

index 813c4edd33e0319eea8767c8404dcbcf989c1288..05ac8aa848bffbd7d1b7abd4fdc73882dfde5961 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.