From: Timo Heister Date: Tue, 18 Jun 2024 22:09:24 +0000 (-0400) Subject: MatrixCreator: use queue_size=1 in debug mode X-Git-Tag: v9.6.0-rc1~181^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3bbafbbf0c1018887f4f07b96dd856f35738e5e;p=dealii.git MatrixCreator: use queue_size=1 in debug mode --- diff --git a/include/deal.II/numerics/matrix_creator.templates.h b/include/deal.II/numerics/matrix_creator.templates.h index 5a67ba86a8..494922bfba 100644 --- a/include/deal.II/numerics/matrix_creator.templates.h +++ b/include/deal.II/numerics/matrix_creator.templates.h @@ -781,7 +781,14 @@ namespace MatrixCreator &rhs_vector); }, assembler_data, - copy_data); + copy_data +#ifdef DEBUG + // use chunk_size = 1 to make multithreading bugs/races more likely: + , + /* queue_length (default) = */ 2 * MultithreadInfo::n_threads(), + /* chunk_size = */ 1 +#endif + ); matrix.compress(VectorOperation::add); }