[MOAB-dev] r5752 - MOAB/trunk/tools/mbcoupler

jain at mcs.anl.gov jain at mcs.anl.gov
Tue Sep 25 13:33:05 CDT 2012


Author: jain
Date: 2012-09-25 13:33:05 -0500 (Tue, 25 Sep 2012)
New Revision: 5752

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
Adding extra option PARALLEL_COMM= for write_file, gets rid of error - not receive valid id handle for shared Vertex. All test cases with mbcoupler_test now work.

Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2012-09-25 17:53:15 UTC (rev 5751)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2012-09-25 18:33:05 UTC (rev 5752)
@@ -185,7 +185,11 @@
     Range partSets;
       // only save the target mesh
     partSets.insert((EntityHandle)roots[1]);
-    result = mbImpl->write_file(outFile.c_str(), NULL, writeOpts.c_str(), partSets);
+    std::string newwriteOpts;
+    std::ostringstream extraOpt;
+    extraOpt  << ";PARALLEL_COMM=" << 1;
+    newwriteOpts = writeOpts+extraOpt.str();
+    result = mbImpl->write_file(outFile.c_str(), NULL, newwriteOpts.c_str(), partSets);
     PRINT_LAST_ERROR;
     std::cout << "Wrote " << outFile << std::endl;
     std::cout << "mbcoupler_test complete." << std::endl;



More information about the moab-dev mailing list