]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix tests 10745/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 23 Jul 2020 18:27:28 +0000 (14:27 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 23 Jul 2020 18:27:28 +0000 (14:27 -0400)
tests/base/utilities_13.cc
tests/lac/block_linear_operator_01.cc
tests/lac/block_linear_operator_06.cc
tests/lapack/full_matrix_31.cc
tests/lapack/full_matrix_32.cc
tests/lapack/full_matrix_33.cc
tests/lapack/full_matrix_34.cc

index 5f6f3ed93e4af1f26685621ae70e33ba554c18f5..d94b966538b20094aad9adbf0bc809765d531fe0 100644 (file)
@@ -88,7 +88,7 @@ void
 test2()
 {
   deallog << "test2:" << std::endl;
-  std::vector<std::array<std::uint64_t, 3>> points = {{5, 10, 20}};
+  std::vector<std::array<std::uint64_t, 3>> points = {{{5, 10, 20}}};
 
   const auto res = Utilities::inverse_Hilbert_space_filling_curve<3>(points, 5);
 
index e88cf96989d29820130423c641bd643b8754abdf..4052babc68490630f3a5680b0ffca3ab8d67263e 100644 (file)
@@ -112,7 +112,7 @@ main()
   auto op_b11 = linear_operator(a.block(1, 1));
 
   std::array<std::array<decltype(op_b00), 2>, 2> temp{
-    {{op_b00, op_b01}, {op_b10, op_b11}}};
+    {{{op_b00, op_b01}}, {{op_b10, op_b11}}}};
   auto op_b = block_operator<2, 2, BlockVector<double>>(temp);
 
   {
@@ -189,9 +189,9 @@ main()
   // And finally complicated block structures:
 
   std::array<std::array<decltype(op_b00), 3>, 3> temp2{
-    {{op_b00, op_b01, op_b00},
-     {op_b10, op_b11, op_b10},
-     {op_b10, op_b11, op_b10}}};
+    {{{op_b00, op_b01, op_b00}},
+     {{op_b10, op_b11, op_b10}},
+     {{op_b10, op_b11, op_b10}}}};
   auto op_upp_x_upu = block_operator<3, 3, BlockVector<double>>(temp2);
 
   op_upp_x_upu.reinit_domain_vector(u, false);
@@ -210,11 +210,11 @@ main()
   PRINTME("v", v);
 
   std::array<std::array<decltype(op_b01), 1>, 3> temp3{
-    {{op_b01}, {op_b11}, {op_b11}}};
+    {{{op_b01}}, {{op_b11}}, {{op_b11}}}};
   auto op_upp_x_p = block_operator<3, 1, BlockVector<double>>(temp3);
 
   std::array<std::array<decltype(op_b01), 3>, 1> temp4{
-    {{op_b00, op_b01, op_b00}}};
+    {{{op_b00, op_b01, op_b00}}}};
   auto op_u_x_upu = block_operator<1, 3, BlockVector<double>>(temp4);
 
   auto op_long = op_u_x_upu * transpose_operator(op_upp_x_upu) * op_upp_x_p;
index 89c9c073ed75bded2447250faa8f4aec7ae8198d..bcfcbf34858e3b1ef5ab3b476e31547ac1a31a56 100644 (file)
@@ -112,7 +112,7 @@ main()
   auto op_b11 = linear_operator(a.block(1, 1));
 
   std::array<std::array<decltype(op_b00), 2>, 2> temp{
-    {{op_b00, op_b01}, {op_b10, op_b11}}};
+    {{{op_b00, op_b01}}, {{op_b10, op_b11}}}};
   auto op_b = block_operator<2, 2, BlockVector<double>>(temp);
 
   // vmult:
index 7b4146a5465e0ee7d57982c073225d5fd3888cef..6043e1238225bcd2e1f1731bc0bb64db110f1236 100644 (file)
@@ -112,14 +112,14 @@ main()
   initlog();
   deallog.get_file_stream().precision(3);
 
-  const std::vector<std::array<unsigned int, 3>> sizes = {{3, 3, 3},
-                                                          {7, 7, 7},
-                                                          {51, 51, 51},
-                                                          {320, 320, 320},
-                                                          {3, 5, 9},
-                                                          {7, 7, 9},
-                                                          {10, 5, 10},
-                                                          {320, 320, 120}};
+  const std::vector<std::array<unsigned int, 3>> sizes = {{{3, 3, 3}},
+                                                          {{7, 7, 7}},
+                                                          {{51, 51, 51}},
+                                                          {{320, 320, 320}},
+                                                          {{3, 5, 9}},
+                                                          {{7, 7, 9}},
+                                                          {{10, 5, 10}},
+                                                          {{320, 320, 120}}};
 
   deallog.push("double");
   for (auto el : sizes)
index 101f83aa88882438642ed6c31fa64423ecbf6def..179e5b267416679c7aed092fafcdb2b587a1a650 100644 (file)
@@ -73,8 +73,14 @@ main()
   initlog();
   deallog.get_file_stream().precision(3);
 
-  const std::vector<std::array<unsigned int, 2>> sizes = {
-    {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {5, 17}, {320, 121}};
+  const std::vector<std::array<unsigned int, 2>> sizes = {{{3, 3}},
+                                                          {{7, 7}},
+                                                          {{51, 51}},
+                                                          {{320, 320}},
+                                                          {{3, 9}},
+                                                          {{9, 7}},
+                                                          {{5, 17}},
+                                                          {{320, 121}}};
 
   deallog.push("double");
   for (auto el : sizes)
index 43171aa16ee55f69cf36c9c319d00c8cd06a353b..4ceee59c65424e63cb1861469b4f8309296b3b17 100644 (file)
@@ -74,8 +74,14 @@ main()
   initlog();
   deallog.get_file_stream().precision(3);
 
-  const std::vector<std::array<unsigned int, 2>> sizes = {
-    {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {10, 5}, {320, 120}};
+  const std::vector<std::array<unsigned int, 2>> sizes = {{{3, 3}},
+                                                          {{7, 7}},
+                                                          {{51, 51}},
+                                                          {{320, 320}},
+                                                          {{3, 9}},
+                                                          {{9, 7}},
+                                                          {{10, 5}},
+                                                          {{320, 120}}};
 
   deallog.push("double");
   for (auto el : sizes)
index f3bcb3dcacc622f0412a9977d206e49658f489ff..76df2752244f975ed80ea9d45f741c923823e016 100644 (file)
@@ -74,8 +74,14 @@ main()
   initlog();
   deallog.get_file_stream().precision(3);
 
-  const std::vector<std::array<unsigned int, 2>> sizes = {
-    {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {10, 5}, {320, 120}};
+  const std::vector<std::array<unsigned int, 2>> sizes = {{{3, 3}},
+                                                          {{7, 7}},
+                                                          {{51, 51}},
+                                                          {{320, 320}},
+                                                          {{3, 9}},
+                                                          {{9, 7}},
+                                                          {{10, 5}},
+                                                          {{320, 120}}};
 
   deallog.push("double");
   for (auto el : sizes)

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.