From: Niklas Fehn Date: Tue, 22 Feb 2022 10:35:05 +0000 (+0100) Subject: change logic in tensor product kernels to positive statements X-Git-Tag: v9.4.0-rc1~451^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abc2daa5157f061a4a383536178f35a7a30877ed;p=dealii.git change logic in tensor product kernels to positive statements --- diff --git a/include/deal.II/matrix_free/tensor_product_kernels.h b/include/deal.II/matrix_free/tensor_product_kernels.h index 5948e7c355..161de95442 100644 --- a/include/deal.II/matrix_free/tensor_product_kernels.h +++ b/include/deal.II/matrix_free/tensor_product_kernels.h @@ -836,10 +836,10 @@ namespace internal val0 = shape_data[col * n_columns + i]; res0 += val0 * x[i]; } - if (add == false) - out[stride * col] = res0; - else + if (add) out[stride * col] += res0; + else + out[stride * col] = res0; } if (one_line == false)