From 2e068970cbe04ec3e48699907105893593101c3a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 6 May 2019 23:01:09 -0400 Subject: [PATCH] Modernize step-59 --- examples/step-59/step-59.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); -- 2.39.5