]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address my own review comments. 6858/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 5 Jul 2018 13:24:44 +0000 (07:24 -0600)
committerGitHub <noreply@github.com>
Thu, 5 Jul 2018 13:24:44 +0000 (07:24 -0600)
examples/step-39/step-39.cc

index de84658ca754a8c9299ed69a7d67908dcafaa815..144b998b02b756a10ade6798a3e4bd4a1f2d3f94 100644 (file)
@@ -202,8 +202,8 @@ namespace Step39
     for (unsigned k = 0; k < fe.n_quadrature_points; ++k)
       for (unsigned int i = 0; i < fe.dofs_per_cell; ++i)
         local_vector(i) +=
-          (-fe.shape_value(i, k) * penalty              // -sigma * v_i(x_k)
-           + fe.normal_vector(k) * fe.shape_grad(i, k)) // n * grad v_i(x_k)
+          (-penalty * fe.shape_value(i, k)              // (-sigma * v_i(x_k)
+           + fe.normal_vector(k) * fe.shape_grad(i, k)) // + n * grad v_i(x_k))
           * boundary_values[k] * fe.JxW(k);             // u^D(x_k) * dx
   }
 
@@ -782,7 +782,7 @@ namespace Step39
     // own numbering in order to use this vector. For the assembler used below
     // the information in which component of a vector the result is stored is
     // transmitted by the user_index variable for each cell. We need to set this
-    // numering up here.
+    // numbering up here.
     //
     // On the other hand, somebody might have used the user indices
     // already. So, let's be good citizens and save them before tampering with

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.