From: Matthias Maier Date: Sat, 11 May 2019 21:08:41 +0000 (-0500) Subject: improve readability of assembly routine X-Git-Tag: v9.1.0-rc1~48^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff4d61499e86e37bf4f6b07113c921e0ac84538;p=dealii.git improve readability of assembly routine --- diff --git a/examples/step-6/step-6.cc b/examples/step-6/step-6.cc index 583a8de938..7f7f9ee82c 100644 --- a/examples/step-6/step-6.cc +++ b/examples/step-6/step-6.cc @@ -299,11 +299,14 @@ void Step6::assemble_system() { for (unsigned int j = 0; j < dofs_per_cell; ++j) cell_matrix(i, j) += - (current_coefficient * fe_values.shape_grad(i, q_index) * - fe_values.shape_grad(j, q_index) * fe_values.JxW(q_index)); - - cell_rhs(i) += (fe_values.shape_value(i, q_index) * 1.0 * - fe_values.JxW(q_index)); + (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.JxW(q_index)); // dx + + cell_rhs(i) += (1.0 * // + fe_values.shape_value(i, q_index) * // phi_i(x_q) + fe_values.JxW(q_index)); // dx } }