]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compile error with new default constructor of CellData.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 14 Nov 2013 02:07:50 +0000 (02:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 14 Nov 2013 02:07:50 +0000 (02:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@31647 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/mapping_real_to_unit_q4_sphere.cc
tests/fe/mapping_real_to_unit_q4_sphere_x.cc
tests/fe/mapping_real_to_unit_q4_sphere_y.cc
tests/fe/mapping_real_to_unit_q4_sphere_z.cc

index fb667f8e921335eb7503d01496c0666dcd329c92..d85b5b59889103cfb8b7391824a4e9dc9e3723ba 100644 (file)
@@ -67,7 +67,9 @@ void test_real_to_unit_cell()
     vertices[v] *= radius/vertices[v].norm();
   std::vector<CellData<dim> > cells;
   {
-    CellData<dim> d = {{0,1,2,3,4,5,6,7},{0}};
+    CellData<dim> d;
+    for (unsigned int i=0; i<8; ++i)
+      d.vertices[i] = i;
     cells.push_back(d);
   }
   Triangulation<dim> triangulation;
index 8af5d89bc982befd26633bc6d664c39c0c971487..23cadac0c8197b234c7b1b1088d4e5c52bfb06f9 100644 (file)
@@ -57,7 +57,9 @@ void test_real_to_unit_cell()
     vertices[v] *= radius/vertices[v].norm();
   std::vector<CellData<dim> > cells;
   {
-    CellData<dim> d = {{0,1,2,3,4,5,6,7},{0}};
+    CellData<dim> d;
+    for (unsigned int i=0; i<8; ++i)
+      d.vertices[i] = i;
     cells.push_back(d);
   }
   Triangulation<dim> triangulation;
index a96c6bc26c37daa6f2167f50bd04fd76c1709e5e..772319d2b11cc84086cda938a6badb43bc69b9ce 100644 (file)
@@ -57,7 +57,9 @@ void test_real_to_unit_cell()
     vertices[v] *= radius/vertices[v].norm();
   std::vector<CellData<dim> > cells;
   {
-    CellData<dim> d = {{0,1,2,3,4,5,6,7},{0}};
+    CellData<dim> d;
+    for (unsigned int i=0; i<8; ++i)
+      d.vertices[i] = i;
     cells.push_back(d);
   }
   Triangulation<dim> triangulation;
index 3a839f676494f4ec9cee612b53890c3b8c2a170d..8eb53f60b343f640e628b2e87fe066079654a6ef 100644 (file)
@@ -57,7 +57,9 @@ void test_real_to_unit_cell()
     vertices[v] *= radius/vertices[v].norm();
   std::vector<CellData<dim> > cells;
   {
-    CellData<dim> d = {{0,1,2,3,4,5,6,7},{0}};
+    CellData<dim> d;
+    for (unsigned int i=0; i<8; ++i)
+      d.vertices[i] = i;
     cells.push_back(d);
   }
   Triangulation<dim> triangulation;

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.