]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Multiply right hand side value from the left with phi_i. 16953/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 May 2024 14:58:33 +0000 (20:28 +0530)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 May 2024 14:58:33 +0000 (20:28 +0530)
examples/step-6/step-6.cc

index 3dd3c7153c91b90c70fb68a3bb4f741842337350..17f9746eaa9dda41716cbf470e3f5362bc224983 100644 (file)
@@ -289,8 +289,8 @@ void Step6<dim>::assemble_system()
                    fe_values.shape_grad(j, q_index) * // grad phi_j(x_q)
                    fe_values.JxW(q_index));           // dx
 
-              cell_rhs(i) += (1.0 *                               // f(x)
-                              fe_values.shape_value(i, q_index) * // phi_i(x_q)
+              cell_rhs(i) += (fe_values.shape_value(i, q_index) * // phi_i(x_q)
+                              1.0 *                               // f(x)
                               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.