[MOAB-dev] r5892 - MOAB/trunk/test/parallel

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Nov 29 16:56:52 CST 2012


Author: iulian
Date: 2012-11-29 16:56:52 -0600 (Thu, 29 Nov 2012)
New Revision: 5892

Modified:
   MOAB/trunk/test/parallel/ucdtrvpart.cpp
Log:
multiple loads of the same file test, a scenario closer to what parvis is
needing
it is commented out for the time being 



Modified: MOAB/trunk/test/parallel/ucdtrvpart.cpp
===================================================================
--- MOAB/trunk/test/parallel/ucdtrvpart.cpp	2012-11-29 18:32:12 UTC (rev 5891)
+++ MOAB/trunk/test/parallel/ucdtrvpart.cpp	2012-11-29 22:56:52 UTC (rev 5892)
@@ -8,14 +8,14 @@
 
 #ifdef MESHDIR
 static const char example[] = STRINGIFY(MESHDIR) "/io/homme26x3458.t.3.nc";
-#else
-static const char example[] = "/io/camEul26x48x96.t3.nc";
 #endif
 
 void test_read_parallel_ucd_trivial();
 void test_read_parallel_ucd_trivial_spectral();
 void test_read_parallel(int num_verts, bool test_nb_nodes);
 
+void test_multiple_loads_of_same_file();
+
 std::string partition_method;
 
 int main(int argc, char **argv)
@@ -25,6 +25,7 @@
   
   result += RUN_TEST(test_read_parallel_ucd_trivial);
   result += RUN_TEST(test_read_parallel_ucd_trivial_spectral);
+  //result += RUN_TEST(test_multiple_loads_of_same_file);
   
   MPI_Finalize();
   return result;
@@ -84,3 +85,26 @@
   mb.write_file( "test.h5m", NULL, write_options.c_str() );
 }
 
+void test_multiple_loads_of_same_file()
+{
+  Core moab;
+  Interface& mb = moab;
+  EntityHandle file_set;
+  ErrorCode rval;
+  rval = mb.create_meshset(MESHSET_SET, file_set);
+  CHECK_ERR(rval);
+
+  // read first only header information, no mesh, no variable
+  std::string opts("PARALLEL=READ_PART;PARTITION;PARALLEL_GHOSTS=2.0.1;NOMESH;VARIABLE=;PARTITION_METHOD=TRIVIAL_PARTITION");
+  rval = mb.load_file(example, &file_set, opts.c_str());
+  CHECK_ERR(rval);
+
+  opts="PARALLEL=READ_PART;PARTITION;PARALLEL_RESOLVE_SHARED_ENTS;PARALLEL_GHOSTS=2.0.1;PARTITION_METHOD=TRIVIAL_PARTITION;VARIABLE=";
+  rval = mb.load_file(example, &file_set, opts.c_str());
+  CHECK_ERR(rval);
+


More information about the moab-dev mailing list