[MOAB-dev] commit/MOAB: danwu: Updated MeshFiles/unittest/io/mpasx1.642.t.2.nc with full artificial values for cell variable ke (e.g. 15.001 stands for 1st time step, pentagon, global cell index 1; 26.642 stands for 2nd time step, hexagon, global cell index 642), and updated the affected MPAS reader unit tests. Will modify the unit tests to check more values read from ke later.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Oct 31 16:01:43 CDT 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/25d094f89cb9/
Changeset: 25d094f89cb9
Branch: master
User: danwu
Date: 2013-10-31 22:01:28
Summary: Updated MeshFiles/unittest/io/mpasx1.642.t.2.nc with full artificial values for cell variable ke (e.g. 15.001 stands for 1st time step, pentagon, global cell index 1; 26.642 stands for 2nd time step, hexagon, global cell index 642), and updated the affected MPAS reader unit tests. Will modify the unit tests to check more values read from ke later.
Affected #: 3 files
diff --git a/MeshFiles/unittest/io/mpasx1.642.t.2.nc b/MeshFiles/unittest/io/mpasx1.642.t.2.nc
index f1e8c94..f055c49 100644
Binary files a/MeshFiles/unittest/io/mpasx1.642.t.2.nc and b/MeshFiles/unittest/io/mpasx1.642.t.2.nc differ
diff --git a/test/io/read_mpas_nc.cpp b/test/io/read_mpas_nc.cpp
index 597c752..5ceb994 100644
--- a/test/io/read_mpas_nc.cpp
+++ b/test/io/read_mpas_nc.cpp
@@ -146,11 +146,11 @@ void test_read_all()
// Check ke tag values on first pentagon and first hexagon
EntityHandle cell_ents[] = {cells[0], cells[12]};
rval = mb.tag_get_data(ke_tag0, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(1.5, val[0], eps);
- CHECK_REAL_EQUAL(1.6, val[1], eps);
+ CHECK_REAL_EQUAL(15.001, val[0], eps);
+ CHECK_REAL_EQUAL(16.013, val[1], eps);
rval = mb.tag_get_data(ke_tag1, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(2.5, val[0], eps);
- CHECK_REAL_EQUAL(2.6, val[1], eps);
+ CHECK_REAL_EQUAL(25.001, val[0], eps);
+ CHECK_REAL_EQUAL(26.013, val[1], eps);
}
}
@@ -226,11 +226,11 @@ void test_read_onevar()
double val[2];
EntityHandle cell_ents[] = {cells[0], cells[12]};
rval = mb.tag_get_data(ke_tag0, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(1.5, val[0], eps);
- CHECK_REAL_EQUAL(1.6, val[1], eps);
+ CHECK_REAL_EQUAL(15.001, val[0], eps);
+ CHECK_REAL_EQUAL(16.013, val[1], eps);
rval = mb.tag_get_data(ke_tag1, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(2.5, val[0], eps);
- CHECK_REAL_EQUAL(2.6, val[1], eps);
+ CHECK_REAL_EQUAL(25.001, val[0], eps);
+ CHECK_REAL_EQUAL(26.013, val[1], eps);
}
}
@@ -377,11 +377,11 @@ void test_read_no_mixed_elements()
// Check ke tag values on first pentagon and first hexagon
EntityHandle cell_ents[] = {cells[0], cells[12]};
rval = mb.tag_get_data(ke_tag0, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(1.5, val[0], eps);
- CHECK_REAL_EQUAL(1.6, val[1], eps);
+ CHECK_REAL_EQUAL(15.001, val[0], eps);
+ CHECK_REAL_EQUAL(16.013, val[1], eps);
rval = mb.tag_get_data(ke_tag1, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(2.5, val[0], eps);
- CHECK_REAL_EQUAL(2.6, val[1], eps);
+ CHECK_REAL_EQUAL(25.001, val[0], eps);
+ CHECK_REAL_EQUAL(26.013, val[1], eps);
}
}
diff --git a/test/parallel/mpastrvpart.cpp b/test/parallel/mpastrvpart.cpp
index f9bfa36..24f0b9b 100644
--- a/test/parallel/mpastrvpart.cpp
+++ b/test/parallel/mpastrvpart.cpp
@@ -325,8 +325,8 @@ void test_multiple_loads_of_same_file()
// Check ke0 tag values on first pentagon and first hexagon
EntityHandle cell_ents[] = {cells[0], cells[12]};
rval = mb.tag_get_data(ke_tag0, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(1.5, val[0], eps);
- CHECK_REAL_EQUAL(1.6, val[1], eps);
+ CHECK_REAL_EQUAL(15.001, val[0], eps);
+ CHECK_REAL_EQUAL(16.013, val[1], eps);
}
else if (1 == rank) {
CHECK_EQUAL(2402, my_verts_num); // Gather set vertices included; Not owned vertices included
@@ -431,8 +431,8 @@ void test_multiple_loads_of_same_file_no_mixed_elements()
// Check ke0 tag values on first pentagon and first hexagon
EntityHandle cell_ents[] = {cells[0], cells[12]};
rval = mb.tag_get_data(ke_tag0, &cell_ents[0], 2, val);
- CHECK_REAL_EQUAL(1.5, val[0], eps);
- CHECK_REAL_EQUAL(1.6, val[1], eps);
+ CHECK_REAL_EQUAL(15.001, val[0], eps);
+ CHECK_REAL_EQUAL(16.013, val[1], eps);
}
else if (1 == rank) {
CHECK_EQUAL(2402, my_verts_num); // Gather set vertices included; Not owned vertices included
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list