]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change logic in tensor product kernels to positive statements
authorNiklas Fehn <fehn@lnm.mw.tum.de>
Tue, 22 Feb 2022 10:35:05 +0000 (11:35 +0100)
committerNiklas Fehn <fehn@lnm.mw.tum.de>
Tue, 22 Feb 2022 10:35:05 +0000 (11:35 +0100)
include/deal.II/matrix_free/tensor_product_kernels.h

index 5948e7c355704903c27b88ed3d039d1587552d1d..161de9544279b07a5f5296515e8a861965d886c8 100644 (file)
@@ -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)

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.