]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify some code in DataOut_DoFData. 6876/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Jul 2018 16:51:55 +0000 (10:51 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 5 Jul 2018 22:37:08 +0000 (16:37 -0600)
include/deal.II/numerics/data_out_dof_data.templates.h

index dd5f5343f0ab441274326a9a478ac13e7dafb5e8..b32440a6135ab9b4577857816aa3d7d2d04a72ad 100644 (file)
@@ -1389,16 +1389,11 @@ DataOut_DoFData<DoFHandlerType, patch_dim, patch_space_dim>::
               }
 
           // finally add a corresponding range
-          std::tuple<unsigned int,
-                     unsigned int,
-                     std::string,
-                     DataComponentInterpretation::DataComponentInterpretation>
-            range(output_component,
-                  output_component + patch_space_dim - 1,
-                  name,
-                  DataComponentInterpretation::component_is_part_of_vector);
-
-          ranges.push_back(range);
+          ranges.push_back(std::make_tuple(
+            output_component,
+            output_component + patch_space_dim - 1,
+            name,
+            DataComponentInterpretation::component_is_part_of_vector));
 
           // increase the 'component' counter by the appropriate amount, same
           // for 'i', since we have already dealt with all these components

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.