From bff4d61499e86e37bf4f6b07113c921e0ac84538 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 11 May 2019 16:08:41 -0500 Subject: [PATCH] improve readability of assembly routine --- examples/step-6/step-6.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 } } -- 2.39.5