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

jain at mcs.anl.gov jain at mcs.anl.gov
Mon Mar 12 16:54:17 CDT 2012


Author: jain
Date: 2012-03-12 16:54:17 -0500 (Mon, 12 Mar 2012)
New Revision: 5425

Modified:
   MOAB/trunk/tools/mbzoltan/mbpart.cpp
Log:
o Add option -l to load a material set for partitioning.
Example: Load material set 110 from n.h5m 
mbpart -l 110 6 n.h5m p.h5m


Modified: MOAB/trunk/tools/mbzoltan/mbpart.cpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/mbpart.cpp	2012-03-12 16:24:22 UTC (rev 5424)
+++ MOAB/trunk/tools/mbzoltan/mbpart.cpp	2012-03-12 21:54:17 UTC (rev 5425)
@@ -21,7 +21,7 @@
 const char ZOLTAN_OCTPART_METHOD[] = "OCTPART";
 
 const char BRIEF_DESC[] = 
- "Use Zoltan to partition MOAB meshes for use on parallel computers";
+  "Use Zoltan to partition MOAB meshes for use on parallel computers";
 std::ostringstream LONG_DESC;
 
 int main( int argc, char* argv[] )
@@ -36,18 +36,18 @@
   Interface& mb = moab;
   
   LONG_DESC << "This utility invokes the MBZoltan componemnt of MOAB/CGM"
-               "to partition a mesh/geometry." << std::endl
+    "to partition a mesh/geometry." << std::endl
             << "If no partitioning method is specified, the default is "
-               "the Zoltan \"" << DEFAULT_ZOLTAN_METHOD << "\" method" << std::endl;
+    "the Zoltan \"" << DEFAULT_ZOLTAN_METHOD << "\" method" << std::endl;
   
   ProgOptions opts(LONG_DESC.str(), BRIEF_DESC);
   opts.addOpt<int>( "dimension", "Specify dimension of entities to partition."
-                                 "  Default is  largest in file.", 
-                                 0, ProgOptions::int_flag );
+		    "  Default is  largest in file.", 
+		    0, ProgOptions::int_flag );
   opts.addOpt<std::string>( "zoltan,z", "Specify Zoltan partition method.  "
-                                         "One of RR, RCB, RIB, HFSC, PHG, " 
-                                         " or Hypergraph (PHG and Hypergraph "
-                                         "are synonymous)." );
+			    "One of RR, RCB, RIB, HFSC, PHG, " 
+			    " or Hypergraph (PHG and Hypergraph "
+			    "are synonymous)." );
   opts.addOpt<std::string>( "parmetis,p", "Specify Parmetis partition method.");
   opts.addOpt<std::string>( "octpart,o", "Specify OctPart partition method.");
   opts.addOpt<void>( "sets,s", "Write partition as tagged sets (Default)" );
@@ -60,6 +60,7 @@
   opts.addOpt<void>( "ghost,h", "Specify if partition ghost geometry body.");
   opts.addOpt<int>( "vertex_w,v", "Number of weights associated with a graph vertex.");
   opts.addOpt<int>( "edge_w,e", "Number of weights associated with an edge.");
+  opts.addOpt<int>( "set_l,l", "Load material set with id.");
   opts.addRequiredArg<int>( "#parts", "Number of parts in partition" );
   opts.addRequiredArg<std::string>( "input_file", "Mesh/geometry to partition" );
   opts.addRequiredArg<std::string>( "output_file", "File to which to write partitioned mesh/geometry" );
@@ -77,7 +78,7 @@
   int power = -1;
   int obj_weight = -1;
   int edge_weight = -1;


More information about the moab-dev mailing list