]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Correction of comments in step-72
authorFabian Castelli <fabian.castelli@kit.edu>
Fri, 8 Oct 2021 08:48:22 +0000 (10:48 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Mon, 11 Oct 2021 14:47:29 +0000 (16:47 +0200)
examples/step-72/step-72.cc

index b4b21033251c2410433dfc34ff7b2d061df669be..8b140bf0305e7c80e1c6cd17d23f7c7fab449266 100644 (file)
@@ -367,7 +367,7 @@ namespace Step72
 
               cell_rhs(i) -= (fe_values.shape_grad(i, q)  // \nabla \phi_i
                               * coeff                     // * a_n
-                              * old_solution_gradients[q] // * u_n
+                              * old_solution_gradients[q] // * \nabla u_n
                               * fe_values.JxW(q));        // * dx
             }
         }
@@ -587,7 +587,7 @@ namespace Step72
             {
               residual_ad[i] += (fe_values.shape_grad(i, q)   // \nabla \phi_i
                                  * coeff                      // * a_n
-                                 * old_solution_gradients[q]) // * u_n
+                                 * old_solution_gradients[q]) // * \nabla u_n
                                 * fe_values.JxW(q);           // * dx
             }
         }
@@ -949,7 +949,7 @@ namespace Step72
             for (unsigned int i = 0; i < dofs_per_cell; ++i)
               cell_residual(i) -= (fe_values.shape_grad(i, q) // \nabla \phi_i
                                    * coeff                    // * a_n
-                                   * gradients[q]             // * u_n
+                                   * gradients[q]             // * \nabla u_n
                                    * fe_values.JxW(q));       // * 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.