From 867d1d614509b65cb04cd29362858414ad928c02 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Nov 2013 02:07:50 +0000 Subject: [PATCH] Fix compile error with new default constructor of CellData. git-svn-id: https://svn.dealii.org/trunk@31647 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fe/mapping_real_to_unit_q4_sphere.cc | 4 +++- tests/fe/mapping_real_to_unit_q4_sphere_x.cc | 4 +++- tests/fe/mapping_real_to_unit_q4_sphere_y.cc | 4 +++- tests/fe/mapping_real_to_unit_q4_sphere_z.cc | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/fe/mapping_real_to_unit_q4_sphere.cc b/tests/fe/mapping_real_to_unit_q4_sphere.cc index fb667f8e92..d85b5b5988 100644 --- a/tests/fe/mapping_real_to_unit_q4_sphere.cc +++ b/tests/fe/mapping_real_to_unit_q4_sphere.cc @@ -67,7 +67,9 @@ void test_real_to_unit_cell() vertices[v] *= radius/vertices[v].norm(); std::vector > cells; { - CellData d = {{0,1,2,3,4,5,6,7},{0}}; + CellData d; + for (unsigned int i=0; i<8; ++i) + d.vertices[i] = i; cells.push_back(d); } Triangulation triangulation; diff --git a/tests/fe/mapping_real_to_unit_q4_sphere_x.cc b/tests/fe/mapping_real_to_unit_q4_sphere_x.cc index 8af5d89bc9..23cadac0c8 100644 --- a/tests/fe/mapping_real_to_unit_q4_sphere_x.cc +++ b/tests/fe/mapping_real_to_unit_q4_sphere_x.cc @@ -57,7 +57,9 @@ void test_real_to_unit_cell() vertices[v] *= radius/vertices[v].norm(); std::vector > cells; { - CellData d = {{0,1,2,3,4,5,6,7},{0}}; + CellData d; + for (unsigned int i=0; i<8; ++i) + d.vertices[i] = i; cells.push_back(d); } Triangulation triangulation; diff --git a/tests/fe/mapping_real_to_unit_q4_sphere_y.cc b/tests/fe/mapping_real_to_unit_q4_sphere_y.cc index a96c6bc26c..772319d2b1 100644 --- a/tests/fe/mapping_real_to_unit_q4_sphere_y.cc +++ b/tests/fe/mapping_real_to_unit_q4_sphere_y.cc @@ -57,7 +57,9 @@ void test_real_to_unit_cell() vertices[v] *= radius/vertices[v].norm(); std::vector > cells; { - CellData d = {{0,1,2,3,4,5,6,7},{0}}; + CellData d; + for (unsigned int i=0; i<8; ++i) + d.vertices[i] = i; cells.push_back(d); } Triangulation triangulation; diff --git a/tests/fe/mapping_real_to_unit_q4_sphere_z.cc b/tests/fe/mapping_real_to_unit_q4_sphere_z.cc index 3a839f6764..8eb53f60b3 100644 --- a/tests/fe/mapping_real_to_unit_q4_sphere_z.cc +++ b/tests/fe/mapping_real_to_unit_q4_sphere_z.cc @@ -57,7 +57,9 @@ void test_real_to_unit_cell() vertices[v] *= radius/vertices[v].norm(); std::vector > cells; { - CellData d = {{0,1,2,3,4,5,6,7},{0}}; + CellData d; + for (unsigned int i=0; i<8; ++i) + d.vertices[i] = i; cells.push_back(d); } Triangulation triangulation; -- 2.39.5