Commit 2a10426b authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding testing files

parent 0348ff18
openfpm_devices @ 6614dc2b
Subproject commit 991e2a0d650da39025a86395e53b27e57995c11e
Subproject commit 6614dc2b99fc100730266111b254e43c44cd92d8
openfpm_io @ b2256f8d
Subproject commit 2d08be6a6ed83b85505c7df27d29e5d47e300f34
Subproject commit b2256f8dc0cf6bbe3e263e277de99a107db6be65
openfpm_vcluster @ ede7ff53
Subproject commit c561f911db7ecd76c18f5b86a6cb6cb211d1c6d6
Subproject commit ede7ff531adb025d0930de050d0aa65a4ead16cd
......@@ -720,9 +720,6 @@ public:
cart.domain = domain;
std::copy(spacing,spacing+3,cart.spacing);
//! Runtime virtual cluster
cart.v_cl = v_cl;
cart.bbox = bbox;
cart.ss_box = ss_box;
cart.ghost = g;
......@@ -762,9 +759,6 @@ public:
cart.domain = domain;
std::copy(spacing,spacing+3,cart.spacing);
//! Runtime virtual cluster
cart.v_cl = v_cl;
cart.ghost = ghost;
cart.bbox = bbox;
......@@ -795,9 +789,6 @@ public:
domain = cart.domain;
std::copy(cart.spacing,cart.spacing+3,spacing);
//! Runtime virtual cluster
v_cl = cart.v_cl;
ghost = cart.ghost;
bbox = cart.bbox;
......
......@@ -231,9 +231,6 @@ public:
// spacing does not change
std::copy(dec.spacing,dec.spacing+3,this->spacing);
//! Runtime virtual cluster
this->v_cl = dec.v_cl;
this->ghost = g;
this->dist = dec.dist;
......
......@@ -261,12 +261,12 @@ BOOST_AUTO_TEST_CASE( Parmetis_distribution_test)
//! [Initialize a ParMetis Cartesian graph and decompose]
if (v_cl.getProcessingUnits() == 0)
if (v_cl.getProcessUnitID() == 0)
{
// write the first decomposition
pmet_dist.write("vtk_parmetis_distribution_0.vtk");
pmet_dist.write("vtk_parmetis_distribution_0");
bool test = compare("vtk_parmetis_distribution_0.vtk","src/Decomposition/Distribution/test_data/vtk_parmetis_distribution_0_test.vtk");
bool test = compare(std::to_string(v_cl.getProcessUnitID()) + "_vtk_parmetis_distribution_0.vtk","src/Decomposition/Distribution/test_data/" + std::to_string(v_cl.getProcessUnitID()) + "_vtk_parmetis_distribution_0_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -297,10 +297,10 @@ BOOST_AUTO_TEST_CASE( Parmetis_distribution_test)
{
std::stringstream str;
str << "vtk_parmetis_distribution_" << iter;
pmet_dist.write(str.str() + ".vtk");
pmet_dist.write(str.str());
// Check
bool test = compare(str.str() + ".vtk",std::string("src/Decomposition/Distribution/test_data/") + str.str() + "_test.vtk");
bool test = compare(std::to_string(v_cl.getProcessUnitID()) + "_" + str.str() + ".vtk", "src/Decomposition/Distribution/test_data/" + std::to_string(v_cl.getProcessUnitID()) + "_" + str.str() + "_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
}
}
......@@ -344,7 +344,7 @@ BOOST_AUTO_TEST_CASE( DistParmetis_distribution_test)
//! [Initialize a ParMetis Cartesian graph and decompose]
// write the first decomposition
pmet_dist.write("vtk_dist_parmetis_distribution_0.vtk");
pmet_dist.write("vtk_dist_parmetis_distribution_0");
if (v_cl.getProcessingUnits() == 0)
{
......@@ -377,7 +377,7 @@ BOOST_AUTO_TEST_CASE( DistParmetis_distribution_test)
std::stringstream str;
str << "vtk_dist_parmetis_distribution_" << iter;
pmet_dist.write(str.str() + ".vtk");
pmet_dist.write(str.str());
// Check
if (v_cl.getProcessUnitID() == 0)
......
......@@ -449,7 +449,6 @@ public:
check_valid(&mt,8);
check_valid(this,8);
#endif
this->v_cl = mt.v_cl;
this->gr = mt.gr;
this->domain = mt.domain;
this->gp = mt.gp;
......@@ -467,7 +466,6 @@ public:
check_valid(mt);
check_valid(this,8);
#endif
this->v_cl = mt.v_cl;
this->gr = mt.gr;
this->domain = mt.domain;
this->gp.swap(mt.gp);
......
......@@ -573,16 +573,12 @@ public:
*/
void write(const std::string & file)
{
//f (v_cl.getProcessUnitID() == 0)
//{
VTKWriter<Graph_CSR<nm_v, nm_e>, VTK_GRAPH> gv2(gp);
gv2.write(std::to_string(v_cl.getProcessUnitID()) + file);
//}
VTKWriter<Graph_CSR<nm_v, nm_e>, VTK_GRAPH> gv2(gp);
gv2.write(std::to_string(v_cl.getProcessUnitID()) + "_" + file + ".vtk");
}
const ParMetisDistribution<dim,T> & operator=(const ParMetisDistribution<dim,T> & dist)
{
v_cl = dist.v_cl;
gr = dist.gr;
domain = dist.domain;
gp = dist.gp;
......
# vtk DataFile Version 3.0
Graph
ASCII
DATASET POLYDATA
POINTS 64 float
0.000000 0.000000 0.000000
0.125000 0.000000 0.000000
0.250000 0.000000 0.000000
0.375000 0.000000 0.000000
0.500000 0.000000 0.000000
0.625000 0.000000 0.000000
0.750000 0.000000 0.000000
0.875000 0.000000 0.000000
0.000000 0.125000 0.000000
0.125000 0.125000 0.000000
0.250000 0.125000 0.000000
0.375000 0.125000 0.000000
0.500000 0.125000 0.000000
0.625000 0.125000 0.000000
0.750000 0.125000 0.000000
0.875000 0.125000 0.000000
0.000000 0.250000 0.000000
0.125000 0.250000 0.000000
0.250000 0.250000 0.000000
0.375000 0.250000 0.000000
0.500000 0.250000 0.000000
0.625000 0.250000 0.000000
0.750000 0.250000 0.000000
0.875000 0.250000 0.000000
0.000000 0.375000 0.000000
0.125000 0.375000 0.000000
0.250000 0.375000 0.000000
0.375000 0.375000 0.000000
0.500000 0.375000 0.000000
0.625000 0.375000 0.000000
0.750000 0.375000 0.000000
0.875000 0.375000 0.000000
0.000000 0.500000 0.000000
0.125000 0.500000 0.000000
0.250000 0.500000 0.000000
0.375000 0.500000 0.000000
0.500000 0.500000 0.000000
0.625000 0.500000 0.000000
0.750000 0.500000 0.000000
0.875000 0.500000 0.000000
0.000000 0.625000 0.000000
0.125000 0.625000 0.000000
0.250000 0.625000 0.000000
0.375000 0.625000 0.000000
0.500000 0.625000 0.000000
0.625000 0.625000 0.000000
0.750000 0.625000 0.000000
0.875000 0.625000 0.000000
0.000000 0.750000 0.000000
0.125000 0.750000 0.000000
0.250000 0.750000 0.000000
0.375000 0.750000 0.000000
0.500000 0.750000 0.000000
0.625000 0.750000 0.000000
0.750000 0.750000 0.000000
0.875000 0.750000 0.000000
0.000000 0.875000 0.000000
0.125000 0.875000 0.000000
0.250000 0.875000 0.000000
0.375000 0.875000 0.000000
0.500000 0.875000 0.000000
0.625000 0.875000 0.000000
0.750000 0.875000 0.000000
0.875000 0.875000 0.000000
VERTICES 64 128
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 62
1 63
LINES 224 672
2 0 1
2 0 8
2 1 2
2 1 0
2 1 9
2 2 3
2 2 1
2 2 10
2 3 4
2 3 2
2 3 11
2 4 5
2 4 3
2 4 12
2 5 6
2 5 4
2 5 13
2 6 7
2 6 5
2 6 14
2 7 6
2 7 15
2 8 9
2 8 16
2 8 0
2 9 10
2 9 8
2 9 17
2 9 1
2 10 11
2 10 9
2 10 18
2 10 2
2 11 12
2 11 10
2 11 19
2 11 3
2 12 13
2 12 11
2 12 20
2 12 4
2 13 14
2 13 12
2 13 21
2 13 5
2 14 15
2 14 13
2 14 22
2 14 6
2 15 14
2 15 23
2 15 7
2 16 17
2 16 24
2 16 8
2 17 18
2 17 16
2 17 25
2 17 9
2 18 19
2 18 17
2 18 26
2 18 10
2 19 20
2 19 18
2 19 27
2 19 11
2 20 21
2 20 19
2 20 28
2 20 12
2 21 22
2 21 20
2 21 29
2 21 13
2 22 23
2 22 21
2 22 30
2 22 14
2 23 22
2 23 31
2 23 15
2 24 25
2 24 32
2 24 16
2 25 26
2 25 24
2 25 33
2 25 17
2 26 27
2 26 25
2 26 34
2 26 18
2 27 28
2 27 26
2 27 35
2 27 19
2 28 29
2 28 27
2 28 36
2 28 20
2 29 30
2 29 28
2 29 37
2 29 21
2 30 31
2 30 29
2 30 38
2 30 22
2 31 30
2 31 39
2 31 23
2 32 33
2 32 40
2 32 24
2 33 34
2 33 32
2 33 41
2 33 25
2 34 35
2 34 33
2 34 42
2 34 26
2 35 36
2 35 34
2 35 43
2 35 27
2 36 37
2 36 35
2 36 44
2 36 28
2 37 38
2 37 36
2 37 45
2 37 29
2 38 39
2 38 37
2 38 46
2 38 30
2 39 38
2 39 47
2 39 31
2 40 41
2 40 48
2 40 32
2 41 42
2 41 40
2 41 49
2 41 33
2 42 43
2 42 41
2 42 50
2 42 34
2 43 44
2 43 42
2 43 51
2 43 35
2 44 45
2 44 43
2 44 52
2 44 36
2 45 46
2 45 44
2 45 53
2 45 37
2 46 47
2 46 45
2 46 54
2 46 38
2 47 46
2 47 55
2 47 39
2 48 49
2 48 56
2 48 40
2 49 50
2 49 48
2 49 57
2 49 41
2 50 51
2 50 49
2 50 58
2 50 42
2 51 52
2 51 50
2 51 59
2 51 43
2 52 53
2 52 51
2 52 60
2 52 44
2 53 54
2 53 52
2 53 61
2 53 45
2 54 55
2 54 53
2 54 62
2 54 46
2 55 54
2 55 63
2 55 47
2 56 57
2 56 48
2 57 58
2 57 56
2 57 49
2 58 59
2 58 57
2 58 50
2 59 60
2 59 58
2 59 51
2 60 61
2 60 59
2 60 52
2 61 62
2 61 60
2 61 53
2 62 63
2 62 61
2 62 54
2 63 62
2 63 55
POINT_DATA 64
VECTORS x float
0.000000 0.000000 0.000000
0.125000 0.000000 0.000000
0.250000 0.000000 0.000000
0.375000 0.000000 0.000000
0.500000 0.000000 0.000000
0.625000 0.000000 0.000000
0.750000 0.000000 0.000000
0.875000 0.000000 0.000000
0.000000 0.125000 0.000000
0.125000 0.125000 0.000000
0.250000 0.125000 0.000000
0.375000 0.125000 0.000000
0.500000 0.125000 0.000000
0.625000 0.125000 0.000000
0.750000 0.125000 0.000000
0.875000 0.125000 0.000000
0.000000 0.250000 0.000000
0.125000 0.250000 0.000000
0.250000 0.250000 0.000000
0.375000 0.250000 0.000000
0.500000 0.250000 0.000000
0.625000 0.250000 0.000000
0.750000 0.250000 0.000000
0.875000 0.250000 0.000000
0.000000 0.375000 0.000000
0.125000 0.375000 0.000000
0.250000 0.375000 0.000000
0.375000 0.375000 0.000000
0.500000 0.375000 0.000000
0.625000 0.375000 0.000000
0.750000 0.375000 0.000000
0.875000 0.375000 0.000000
0.000000 0.500000 0.000000
0.125000 0.500000 0.000000
0.250000 0.500000 0.000000
0.375000 0.500000 0.000000
0.500000 0.500000 0.000000
0.625000 0.500000 0.000000
0.750000 0.500000 0.000000
0.875000 0.500000 0.000000
0.000000 0.625000 0.000000
0.125000 0.625000 0.000000
0.250000 0.625000 0.000000
0.375000 0.625000 0.000000
0.500000 0.625000 0.000000
0.625000 0.625000 0.000000
0.750000 0.625000 0.000000
0.875000 0.625000 0.000000
0.000000 0.750000 0.000000
0.125000 0.750000 0.000000
0.250000 0.750000 0.000000
0.375000 0.750000 0.000000
0.500000 0.750000 0.000000
0.625000 0.750000 0.000000
0.750000 0.750000 0.000000
0.875000 0.750000 0.000000
0.000000 0.875000 0.000000
0.125000 0.875000 0.000000
0.250000 0.875000 0.000000
0.375000 0.875000 0.000000
0.500000 0.875000 0.000000
0.625000 0.875000 0.000000
0.750000 0.875000 0.000000
0.875000 0.875000 0.000000
SCALARS migration unsigned_long
LOOKUP_TABLE default
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0