[MOAB-dev] r5073 - MOAB/trunk/tools/mbzoltan

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Fri Jul 29 15:08:16 CDT 2011


Author: hongjun
Date: 2011-07-29 15:08:15 -0500 (Fri, 29 Jul 2011)
New Revision: 5073

Modified:
   MOAB/trunk/tools/mbzoltan/mbpart.cpp
Log:
o Loose facet tolerance is only applied to geometry partion


Modified: MOAB/trunk/tools/mbzoltan/mbpart.cpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/mbpart.cpp	2011-07-28 16:23:45 UTC (rev 5072)
+++ MOAB/trunk/tools/mbzoltan/mbpart.cpp	2011-07-29 20:08:15 UTC (rev 5073)
@@ -138,8 +138,9 @@
   std::string output_file = opts.getReqArg<std::string>("output_file");
   clock_t t = clock();
 
-  std::string options("FACET_DISTANCE_TOLERANCE=0.1");
-  ErrorCode rval = mb.load_file( input_file.c_str(), 0, options.c_str() );
+  const char* options = NULL;
+  if (part_geom) options = "FACET_DISTANCE_TOLERANCE=0.1";
+  ErrorCode rval = mb.load_file( input_file.c_str(), 0, options );
   if (MB_SUCCESS != rval) {
     std::cerr << input_file << " : failed to read file." << std::endl;
     std::cerr << "  Error code: " << mb.get_error_string(rval) << " (" << rval << ")" << std::endl;





































More information about the moab-dev mailing list