From: Peter Munch Date: Sat, 14 Oct 2023 17:26:37 +0000 (+0200) Subject: Fix compute_prefix_sum() for serial run X-Git-Tag: relicensing~397^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad1808873e0dcd0c3a22aec2653a9a8a98cac21b;p=dealii.git Fix compute_prefix_sum() for serial run --- diff --git a/include/deal.II/lac/sparse_matrix_tools.h b/include/deal.II/lac/sparse_matrix_tools.h index 6a78644174..c4832c3107 100644 --- a/include/deal.II/lac/sparse_matrix_tools.h +++ b/include/deal.II/lac/sparse_matrix_tools.h @@ -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 =