From: Wolfgang Bangerth Date: Fri, 13 Oct 2023 17:14:39 +0000 (-0600) Subject: Avoid a bare 'new' in step-37. X-Git-Tag: relicensing~402^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16131%2Fhead;p=dealii.git Avoid a bare 'new' in step-37. --- 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,