From de4d6b89987b16621333cb100842ef33010e2017 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 13 Oct 2023 11:14:39 -0600 Subject: [PATCH] Avoid a bare 'new' in step-37. --- examples/step-37/step-37.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index 2b2c089b69..f428beb6c6 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -862,8 +862,8 @@ namespace Step37 additional_data.mapping_update_flags = (update_gradients | update_JxW_values | update_quadrature_points); additional_data.mg_level = level; - std::shared_ptr> mg_mf_storage_level( - new MatrixFree()); + std::shared_ptr> mg_mf_storage_level = + std::make_shared>(); mg_mf_storage_level->reinit(mapping, dof_handler, level_constraints, -- 2.39.5