From 3d2a6d8cd7aa0ad4116664a73d49ff28e13b0b66 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 13 May 2020 15:36:34 -0600 Subject: [PATCH] Minor code improvements to step-50. --- examples/step-50/step-50.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.39.5