[MOAB-dev] r2756 - MOAB/trunk/parallel

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Mar 26 10:40:44 CDT 2009


Author: kraftche
Date: 2009-03-26 10:40:44 -0500 (Thu, 26 Mar 2009)
New Revision: 2756

Modified:
   MOAB/trunk/parallel/parallel_write_test.cc
Log:
add some additional documentation

Modified: MOAB/trunk/parallel/parallel_write_test.cc
===================================================================
--- MOAB/trunk/parallel/parallel_write_test.cc	2009-03-26 13:51:45 UTC (rev 2755)
+++ MOAB/trunk/parallel/parallel_write_test.cc	2009-03-26 15:40:44 UTC (rev 2756)
@@ -37,9 +37,31 @@
 const char args[] = "[-i <intervals>] [-o <filename>] [-g <filename>]";
 void help() {
   std::cout << "parallel_write_test " << args << std::endl
-            << "-i <N>    Each processor owns an NxNxN cube of hex elements (default: " << DEFAULT_INTERVALS << ")" << std::endl
-            << "-o <name> Retain output file and name it as specified." << std::endl
-            << "-g <name> Write local mesh to file name prefixed with MPI rank" << std::endl
+            << "  -i <N>    Each processor owns an NxNxN cube of hex elements (default: " << DEFAULT_INTERVALS << ")" << std::endl
+            << "  -o <name> Retain output file and name it as specified." << std::endl
+            << "  -g <name> Write local mesh to file name prefixed with MPI rank" << std::endl
+            << std::endl
+            << "This program creates a (non-strict) subset of a regular hex mesh "
+               "such that the mesh is already partitioned, and then attempts to "
+               "write that mesh using MOAB's parallel HDF5 writer.  The mesh size "
+               "will scale with the number of processors and the number of elements "
+               "per processor (the latter is a function of the value specified "
+               "with the '-i' flag.)" << std::endl 
+            << std::endl
+            << "Let N = ceil(cbrt(P)), where P is the number of processes.  "
+               "The mesh will be some subset of a cube with one corner at the "
+               "origin and the other at (N,N,N).  Each processor will own a "
+               "non-overlapping 1x1x1 unit block of mesh within that cube.  "
+               "If P is a power of 3, then the entire NxNxN cube will be "
+               "filled with hex elements.  Otherwise, some connected subset "
+               "of the cube will be meshed.  Each processor is assigned a "
+               "sub-block of the cube by rank where the blocks are enumerated "
+               "sequentally with x increasing most rapidly and z least rapidly." << std::endl
+            << std::endl
+            << "The size of the mesh owned by each processor is controlled by "
+               "the number of intervals along each edge of its block of mesh.  "
+               "If each block has N intervals, than each processor will have "
+               "N^3 hex elements." << std::endl
             << std::endl;
 }
  



More information about the moab-dev mailing list