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=refs%2Fpull%2F16139%2Fhead;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 =