From: Wolfgang Bangerth Date: Wed, 13 May 2020 21:36:34 +0000 (-0600) Subject: Minor code improvements to step-50. X-Git-Tag: v9.2.0-rc2~7^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12fde2d6991f3e39453105fa210f69c9a469126a;p=dealii.git Minor code improvements to step-50. --- diff --git a/examples/step-50/step-50.cc b/examples/step-50/step-50.cc index df2f3db567..95a9d59afd 100644 --- a/examples/step-50/step-50.cc +++ b/examples/step-50/step-50.cc @@ -244,7 +244,7 @@ std::shared_ptr>> Coefficient::create_coefficient_table( const MatrixFree> &mf_storage) const { - auto coefficient_table = + std::shared_ptr>> coefficient_table = std::make_shared>>(); FEEvaluation fe_eval(mf_storage); @@ -821,8 +821,7 @@ void LaplaceProblem::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);