]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix typos 8102/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 15:27:15 +0000 (10:27 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 15:27:21 +0000 (10:27 -0500)
examples/step-6/step-6.cc

index f7086ecde517cc5a5c7ca2eb8d92c5372e3012f7..c369f991f77342e33b93af90121139df36b33422 100644 (file)
@@ -300,11 +300,11 @@ void Step6<dim>::assemble_system()
               for (unsigned int j = 0; j < dofs_per_cell; ++j)
                 cell_matrix(i, j) +=
                   (current_coefficient *              // a(x_q)
-                   fe_values.shape_grad(i, q_index) * // grad phi_j(x_q)
-                   fe_values.shape_grad(j, q_index) * // grad phi_i(x_q)
+                   fe_values.shape_grad(i, q_index) * // grad phi_i(x_q)
+                   fe_values.shape_grad(j, q_index) * // grad phi_j(x_q)
                    fe_values.JxW(q_index));           // dx
 
-              cell_rhs(i) += (1.0 *                               //
+              cell_rhs(i) += (1.0 *                               // f(x)
                               fe_values.shape_value(i, q_index) * // phi_i(x_q)
                               fe_values.JxW(q_index));            // dx
             }

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.