]> https://gitweb.dealii.org/ - dealii.git/commitdiff
STEP-77: fix bug
authorStefano Zampini <stefano.zampini@gmail.com>
Sat, 26 Nov 2022 18:42:31 +0000 (21:42 +0300)
committerTimo Heister <timo.heister@gmail.com>
Sat, 3 Dec 2022 14:07:10 +0000 (09:07 -0500)
examples/step-77/step-77.cc

index 3f8a5bc3797129a7cbf9a9c65b25ff5fa19ef89b..ff6cfb319d1dede1d15cece14886010267864813 100644 (file)
@@ -364,7 +364,7 @@ namespace Step77
                                     evaluation_point_gradients[q]);
 
             for (unsigned int i = 0; i < dofs_per_cell; ++i)
-              cell_residual(i) =
+              cell_residual(i) +=
                 (fe_values.shape_grad(i, q)      // \nabla \phi_i
                  * coeff                         // * a_n
                  * evaluation_point_gradients[q] // * \nabla u_n

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.