[MOAB-dev] r5861 - MOAB/trunk/test/parallel
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Fri Nov 9 15:24:37 CST 2012
Author: iulian
Date: 2012-11-09 15:24:37 -0600 (Fri, 09 Nov 2012)
New Revision: 5861
Modified:
MOAB/trunk/test/parallel/ucdtrvpart.cpp
Log:
add a test for Homme spectral mesh in parallel;
it will just exercise the option, more work needs to be done to
match the "fine" nodes on the parallel interfaces
Modified: MOAB/trunk/test/parallel/ucdtrvpart.cpp
===================================================================
--- MOAB/trunk/test/parallel/ucdtrvpart.cpp 2012-11-09 18:38:05 UTC (rev 5860)
+++ MOAB/trunk/test/parallel/ucdtrvpart.cpp 2012-11-09 21:24:37 UTC (rev 5861)
@@ -13,7 +13,8 @@
#endif
void test_read_parallel_ucd_trivial();
-void test_read_parallel(int num_verts);
+void test_read_parallel_ucd_trivial_spectral();
+void test_read_parallel(int num_verts, bool test_nb_nodes);
std::string partition_method;
@@ -34,11 +35,17 @@
// disable spectral mesh for the time being, it is not ready yet
partition_method = std::string(";PARTITION_METHOD=TRIVIAL_PARTITION;PARALLEL_RESOLVE_SHARED_ENTS");
//partition_method = std::string(";PARTITION_METHOD=TRIVIAL_PARTITION;SPECTRAL_MESH;PARALLEL_RESOLVE_SHARED_ENTS");
- test_read_parallel(3458);
+ test_read_parallel(3458, true);
}
-void test_read_parallel(int num_verts)
+void test_read_parallel_ucd_trivial_spectral()
{
+ partition_method = std::string(";PARTITION_METHOD=TRIVIAL_PARTITION;SPECTRAL_MESH;PARALLEL_RESOLVE_SHARED_ENTS");
+ test_read_parallel(3458, false);
+}
+
+void test_read_parallel(int num_verts, bool test_nb_nodes)
+{
Core moab;
Interface& mb = moab;
EntityHandle file_set;
@@ -69,7 +76,8 @@
if (0 == pcomm->proc_config().proc_rank())
{
std::cout<<"total vertices: " << total_verts << "\n";
- CHECK_EQUAL(total_verts, num_verts);
+ if (test_nb_nodes)
+ CHECK_EQUAL(total_verts, num_verts);
}
std::string write_options("PARALLEL=WRITE_PART;");
mb.write_file( "test.h5m", NULL, write_options.c_str() );
More information about the moab-dev
mailing list