]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use make_unique/shared in matrix_free
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 10 Feb 2018 16:02:07 +0000 (17:02 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 15 Feb 2018 21:00:31 +0000 (22:00 +0100)
include/deal.II/matrix_free/fe_evaluation.h

index 1ca1a606eed700ac493c9ce2a6f44ef730031378..cdb183ea01c84c83dd07c348f249a31b532f9aed 100644 (file)
@@ -2215,9 +2215,9 @@ FEEvaluationBase<dim,n_components_,Number>
       other->mapped_geometry->get_quadrature() == quadrature)
     mapped_geometry = other->mapped_geometry;
   else
-    mapped_geometry.reset(new internal::MatrixFreeFunctions::
-                          MappingDataOnTheFly<dim,Number>(mapping, quadrature,
-                                                          update_flags));
+    mapped_geometry
+      = std::make_shared<internal::MatrixFreeFunctions::MappingDataOnTheFly<dim,Number> >
+        (mapping, quadrature, update_flags);
   jacobian = mapped_geometry->get_inverse_jacobians().begin();
   J_value = mapped_geometry->get_JxW_values().begin();
   quadrature_points = mapped_geometry->get_quadrature_points().begin();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.