]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std_cxx14::make_unique in step-70. 10236/head
authorDavid Wells <drwells@email.unc.edu>
Fri, 15 May 2020 17:38:40 +0000 (13:38 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 15 May 2020 17:38:40 +0000 (13:38 -0400)
examples/step-70/step-70.cc

index a58d28eb7024f202dadef28e84339e5ccd97b65d..2963ea98c4ce133b158b5e8240e9172b69a3901b 100644 (file)
@@ -49,6 +49,7 @@ namespace LA
 #include <deal.II/base/index_set.h>
 #include <deal.II/base/parameter_acceptor.h>
 #include <deal.II/base/parsed_function.h>
+#include <deal.II/base/std_cxx14/memory.h>
 #include <deal.II/base/utilities.h>
 
 #include <deal.II/distributed/grid_refinement.h>
@@ -1030,21 +1031,20 @@ namespace Step70
     // of each individual function to identify the bottlenecks.
     TimerOutput::Scope t(computing_timer, "Initial setup");
 
-    fluid_fe =
-      std::make_unique<FESystem<spacedim>>(FE_Q<spacedim>(par.velocity_degree),
-                                           spacedim,
-                                           FE_Q<spacedim>(par.velocity_degree -
-                                                          1),
-                                           1);
+    fluid_fe = std_cxx14::make_unique<FESystem<spacedim>>(
+      FE_Q<spacedim>(par.velocity_degree),
+      spacedim,
+      FE_Q<spacedim>(par.velocity_degree - 1),
+      1);
 
 
-    solid_fe = std::make_unique<FE_Nothing<dim, spacedim>>();
+    solid_fe = std_cxx14::make_unique<FE_Nothing<dim, spacedim>>();
     solid_dh.distribute_dofs(*solid_fe);
 
     fluid_quadrature_formula =
-      std::make_unique<QGauss<spacedim>>(par.velocity_degree + 1);
+      std_cxx14::make_unique<QGauss<spacedim>>(par.velocity_degree + 1);
     solid_quadrature_formula =
-      std::make_unique<QGauss<dim>>(par.velocity_degree + 1);
+      std_cxx14::make_unique<QGauss<dim>>(par.velocity_degree + 1);
 
     // Save the current parameter file in the output directory, for
     // reproducibility

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.