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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Sun Jun 29 20:35:02 CDT 2008


Author: tautges
Date: 2008-06-29 20:34:58 -0500 (Sun, 29 Jun 2008)
New Revision: 1959

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
Oops, forgot to check for empty output file name.


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2008-06-30 01:31:57 UTC (rev 1958)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2008-06-30 01:34:58 UTC (rev 1959)
@@ -120,7 +120,7 @@
 //      "PARALLEL_FORMAT";
       NULL;
 
-  if (pcs[1]->proc_config().proc_rank() == 0) {
+  if (pcs[1]->proc_config().proc_rank() == 0 && !out_fname.empty()) {
     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