]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compute_prefix_sum() for serial run 16139/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 14 Oct 2023 17:26:37 +0000 (19:26 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 14 Oct 2023 17:26:37 +0000 (19:26 +0200)
include/deal.II/lac/sparse_matrix_tools.h

index 6a78644174c0301d1b9f4fd66868c7b9d0c6fed2..c4832c3107b84fbe72c6779a2722701865f5effb 100644 (file)
@@ -151,6 +151,9 @@ namespace SparseMatrixTools
       (void)comm;
       return {0, value};
 #  else
+      if (comm == MPI_COMM_SELF)
+        return {0, value}; // serial triangulation
+
       T prefix = {};
 
       int ierr =

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.