]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor code improvements to step-50.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 May 2020 21:36:34 +0000 (15:36 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 14 May 2020 20:26:27 +0000 (14:26 -0600)
examples/step-50/step-50.cc

index df2f3db567eadde203c6da818c09208014e70429..95a9d59afd3417c1074c2f8fb520c55687e109c5 100644 (file)
@@ -244,7 +244,7 @@ std::shared_ptr<Table<2, VectorizedArray<number>>>
 Coefficient<dim>::create_coefficient_table(
   const MatrixFree<dim, number, VectorizedArray<number>> &mf_storage) const
 {
-  auto coefficient_table =
+  std::shared_ptr<Table<2, VectorizedArray<number>>> coefficient_table =
     std::make_shared<Table<2, VectorizedArray<number>>>();
 
   FEEvaluation<dim, -1, 0, 1, number> fe_eval(mf_storage);
@@ -821,8 +821,7 @@ void LaplaceProblem<dim, degree>::assemble_multigrid()
             for (unsigned int j = 0; j < dofs_per_cell; ++j)
               cell_matrix(i, j) +=
                 (coefficient_value * fe_values.shape_grad(i, q_point) *
-                 fe_values.shape_grad(j, q_point)) *
-                fe_values.JxW(q_point);
+                 fe_values.shape_grad(j, q_point) * fe_values.JxW(q_point));
 
         cell->get_mg_dof_indices(local_dof_indices);
 

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.