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

smithrm at mcs.anl.gov smithrm at mcs.anl.gov
Wed Oct 13 15:56:20 CDT 2010


Author: smithrm
Date: 2010-10-13 15:56:20 -0500 (Wed, 13 Oct 2010)
New Revision: 4218

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
o Updated to output all partitions to out_file with rank number appended.


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-10-13 20:55:04 UTC (rev 4217)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-10-13 20:56:20 UTC (rev 4218)
@@ -126,7 +126,12 @@
 //      "PARALLEL_FORMAT";
       NULL;
 
-  if (pcs[1]->proc_config().proc_rank() == 0 && !out_fname.empty()) {
+  if (!out_fname.empty()) {
+    // get the rank and append to the out_fname.
+    std::stringstream convert;
+    convert << rank;
+    out_fname += convert.str();
+
     result = mbImpl->write_file(out_fname.c_str(), NULL, out_option,
                                 pcs[1]->partition_sets());
     PRINT_LAST_ERROR;



































More information about the moab-dev mailing list