From e09310ce5ceeefbe5608168baa27fe2f3a05520c Mon Sep 17 00:00:00 2001 From: Stefano Zampini Date: Sat, 26 Nov 2022 21:42:31 +0300 Subject: [PATCH] STEP-77: fix bug --- examples/step-77/step-77.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/step-77/step-77.cc b/examples/step-77/step-77.cc index 3f8a5bc379..ff6cfb319d 100644 --- a/examples/step-77/step-77.cc +++ b/examples/step-77/step-77.cc @@ -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 -- 2.39.5