From: Daniel Arndt Date: Tue, 7 May 2019 03:01:09 +0000 (-0400) Subject: Modernize step-59 X-Git-Tag: v9.1.0-rc1~120^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e068970cbe04ec3e48699907105893593101c3a;p=dealii.git Modernize step-59 --- diff --git a/examples/step-59/step-59.cc b/examples/step-59/step-59.cc index 5627107ffb..5ee5c41e72 100644 --- a/examples/step-59/step-59.cc +++ b/examples/step-59/step-59.cc @@ -1018,8 +1018,8 @@ namespace Step59 additional_data.mapping_update_flags_boundary_faces = (update_gradients | update_JxW_values | update_normal_vectors | update_quadrature_points); - std::shared_ptr> system_mf_storage( - new MatrixFree()); + const auto system_mf_storage = + std::make_shared>(); system_mf_storage->reinit(dof_handler, dummy, QGauss<1>(fe.degree + 1), @@ -1050,8 +1050,8 @@ namespace Step59 additional_data.mapping_update_flags_boundary_faces = (update_gradients | update_JxW_values); additional_data.level_mg_handler = level; - std::shared_ptr> mg_mf_storage_level( - new MatrixFree()); + const auto mg_mf_storage_level = + std::make_shared>(); mg_mf_storage_level->reinit(dof_handler, dummy, QGauss<1>(fe.degree + 1), @@ -1244,8 +1244,8 @@ namespace Step59 smoother_data[0].degree = numbers::invalid_unsigned_int; smoother_data[0].eig_cg_n_iterations = mg_matrices[0].m(); } - smoother_data[level].preconditioner.reset( - new PreconditionBlockJacobi()); + smoother_data[level].preconditioner = + std::make_shared>(); smoother_data[level].preconditioner->initialize(mg_matrices[level]); } mg_smoother.initialize(mg_matrices, smoother_data);