]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace std::make_unique by std_cxx14::make_unique 7910/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 11 Apr 2019 12:54:15 +0000 (14:54 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 11 Apr 2019 12:54:15 +0000 (14:54 +0200)
source/meshworker/scratch_data.cc

index 8e6e8708c8fe6b6a2beddd25d46b779868ea3b0c..c55c72e77e64c1f3245e411ab8544d8b96f6af68 100644 (file)
@@ -128,10 +128,8 @@ namespace MeshWorker
     const typename DoFHandler<dim, spacedim>::active_cell_iterator &cell)
   {
     if (!fe_values)
-      fe_values = std::make_unique<FEValues<dim, spacedim>>(*mapping,
-                                                            *fe,
-                                                            cell_quadrature,
-                                                            cell_update_flags);
+      fe_values = std_cxx14::make_unique<FEValues<dim, spacedim>>(
+        *mapping, *fe, cell_quadrature, cell_update_flags);
 
     fe_values->reinit(cell);
     cell->get_dof_indices(local_dof_indices);
@@ -148,7 +146,7 @@ namespace MeshWorker
     const unsigned int                                              face_no)
   {
     if (!fe_face_values)
-      fe_face_values = std::make_unique<FEFaceValues<dim, spacedim>>(
+      fe_face_values = std_cxx14::make_unique<FEFaceValues<dim, spacedim>>(
         *mapping, *fe, face_quadrature, face_update_flags);
 
     fe_face_values->reinit(cell, face_no);
@@ -169,8 +167,9 @@ namespace MeshWorker
     if (subface_no != numbers::invalid_unsigned_int)
       {
         if (!fe_subface_values)
-          fe_subface_values = std::make_unique<FESubfaceValues<dim, spacedim>>(
-            *mapping, *fe, face_quadrature, face_update_flags);
+          fe_subface_values =
+            std_cxx14::make_unique<FESubfaceValues<dim, spacedim>>(
+              *mapping, *fe, face_quadrature, face_update_flags);
         fe_subface_values->reinit(cell, face_no, subface_no);
         cell->get_dof_indices(local_dof_indices);
 
@@ -189,7 +188,7 @@ namespace MeshWorker
     const typename DoFHandler<dim, spacedim>::active_cell_iterator &cell)
   {
     if (!neighbor_fe_values)
-      neighbor_fe_values = std::make_unique<FEValues<dim, spacedim>>(
+      neighbor_fe_values = std_cxx14::make_unique<FEValues<dim, spacedim>>(
         *mapping, *fe, cell_quadrature, neighbor_cell_update_flags);
 
     neighbor_fe_values->reinit(cell);
@@ -207,8 +206,9 @@ namespace MeshWorker
     const unsigned int                                              face_no)
   {
     if (!neighbor_fe_face_values)
-      neighbor_fe_face_values = std::make_unique<FEFaceValues<dim, spacedim>>(
-        *mapping, *fe, face_quadrature, neighbor_face_update_flags);
+      neighbor_fe_face_values =
+        std_cxx14::make_unique<FEFaceValues<dim, spacedim>>(
+          *mapping, *fe, face_quadrature, neighbor_face_update_flags);
     neighbor_fe_face_values->reinit(cell, face_no);
     cell->get_dof_indices(neighbor_dof_indices);
     current_neighbor_fe_values = neighbor_fe_face_values.get();
@@ -228,7 +228,7 @@ namespace MeshWorker
       {
         if (!neighbor_fe_subface_values)
           neighbor_fe_subface_values =
-            std::make_unique<FESubfaceValues<dim, spacedim>>(
+            std_cxx14::make_unique<FESubfaceValues<dim, spacedim>>(
               *mapping, *fe, face_quadrature, neighbor_face_update_flags);
         neighbor_fe_subface_values->reinit(cell, face_no, subface_no);
         cell->get_dof_indices(neighbor_dof_indices);
@@ -353,4 +353,4 @@ namespace MeshWorker
 {
 #include "scratch_data.inst"
 }
-DEAL_II_NAMESPACE_CLOSE
\ No newline at end of file
+DEAL_II_NAMESPACE_CLOSE

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.