]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Try a different syntax. 12556/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 Jul 2021 20:37:25 +0000 (14:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Jul 2021 17:44:41 +0000 (11:44 -0600)
tests/data_out/pvtu_physical_units_02.cc
tests/data_out/vtu_physical_units_02.cc

index f2cf11bc84b6812f08d3038b6d578789635ecadc..ca6317bec32f5a7132f62db5bc42e3bd85d4b117 100644 (file)
@@ -43,15 +43,17 @@ check(DataOutBase::VtkFlags flags, std::ostream &out)
   for (unsigned int i = 1; i < 1 + dim; ++i)
     names[i] = "v";
 
-  std::vector<
+  using Descriptor =
     std::tuple<unsigned int,
                unsigned int,
                std::string,
-               DataComponentInterpretation::DataComponentInterpretation>>
-    vectors{{1,
-             1 + dim - 1,
-             "v",
-             DataComponentInterpretation::component_is_part_of_vector}};
+               DataComponentInterpretation::DataComponentInterpretation>;
+  std::vector<Descriptor> vectors(
+    1,
+    Descriptor{1,
+               1 + dim - 1,
+               "v",
+               DataComponentInterpretation::component_is_part_of_vector});
   DataOutBase::write_pvtu_record(out, {"abc.vtu"}, names, vectors, flags);
 }
 
index 93a3676eb984d6df44ee40ee3a8414b9e4ef8422..d9c2350a1de175d9b9432f61813859cdcd17259f 100644 (file)
@@ -48,15 +48,17 @@ check(DataOutBase::VtkFlags flags, std::ostream &out)
   for (unsigned int i = 1; i < 1 + dim; ++i)
     names[i] = "v";
 
-  std::vector<
+  using Descriptor =
     std::tuple<unsigned int,
                unsigned int,
                std::string,
-               DataComponentInterpretation::DataComponentInterpretation>>
-    vectors{{1,
-             1 + dim - 1,
-             "v",
-             DataComponentInterpretation::component_is_part_of_vector}};
+               DataComponentInterpretation::DataComponentInterpretation>;
+  std::vector<Descriptor> vectors(
+    1,
+    Descriptor{1,
+               1 + dim - 1,
+               "v",
+               DataComponentInterpretation::component_is_part_of_vector});
   DataOutBase::write_vtu(patches, names, vectors, flags, out);
 }
 

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.