]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std_cxx14::make_unique in ScratchData
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 3 May 2019 05:50:34 +0000 (07:50 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 3 May 2019 05:50:34 +0000 (07:50 +0200)
source/meshworker/scratch_data.cc

index 8e6e8708c8fe6b6a2beddd25d46b779868ea3b0c..e5122f00c00f3a83d7f1224097f21c17aa505243 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);

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.