]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use make_unique/shared in particles
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 10 Feb 2018 15:48:13 +0000 (16:48 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 15 Feb 2018 21:00:31 +0000 (22:00 +0100)
source/particles/particle_handler.cc

index 7f8d5d43ce7916d6a0a1dbe4bace2dcd371e9a85..c91e6f4ad8c24ac45014f66acedcb791f401ee30 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <deal.II/particles/particle_handler.h>
 
+#include <deal.II/base/std_cxx14/memory.h>
 #include <deal.II/grid/grid_tools.h>
 #include <deal.II/grid/grid_tools_cache.h>
 
@@ -81,7 +82,7 @@ namespace Particles
     mapping = &mapp;
 
     // Create the memory pool that will store all particle properties
-    property_pool.reset(new PropertyPool(n_properties));
+    property_pool = std_cxx14::make_unique<PropertyPool>(n_properties);
   }
 
 

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.