[MOAB-dev] r1949 - MOAB/trunk
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Sat Jun 28 09:28:14 CDT 2008
Author: tautges
Date: 2008-06-28 09:28:13 -0500 (Sat, 28 Jun 2008)
New Revision: 1949
Modified:
MOAB/trunk/mbparallelcomm_test.cpp
Log:
Moved initializatio of one of the input args; now we can specify
resolve_shared_ents and ghost_entities independently.
Modified: MOAB/trunk/mbparallelcomm_test.cpp
===================================================================
--- MOAB/trunk/mbparallelcomm_test.cpp 2008-06-28 00:32:21 UTC (rev 1948)
+++ MOAB/trunk/mbparallelcomm_test.cpp 2008-06-28 14:28:13 UTC (rev 1949)
@@ -92,7 +92,7 @@
<< "=== =====" << std::endl
<< " 1 <linear_ints> <shared_verts> " << std::endl
<< " 2 <n_ints> " << std::endl
- << " 3* <file_name> [<tag_name>=\"MATERIAL_SET\" [tag_val] [distribute=1] ]" << std::endl
+ << " 3* <file_name> [<tag_name>=\"MATERIAL_SET\" [tag_val] [distribute=1] [resolve_shared=1] [with_ghosts=1]" << std::endl
<< " 4 <file_name> " << std::endl
<< "*Note: if opt 3 is used, it must be the last one." << std::endl;
@@ -148,10 +148,9 @@
if (npos < argc) tag_val = strtol(argv[npos++], NULL, 0);
if (npos < argc) distrib = strtol(argv[npos++], NULL, 0);
else distrib = 1;
- if (npos < argc) {
- with_ghosts = strtol(argv[npos++], NULL, 0);
- resolve_shared = with_ghosts;
- }
+ if (npos < argc) resolve_shared = strtol(argv[npos++], NULL, 0);
+ if (npos < argc) with_ghosts = strtol(argv[npos++], NULL, 0);
+
tmp_result = read_file(mbImpl, filenames, tag_name, tag_val,
distrib, parallel_option,
resolve_shared, with_ghosts);
More information about the moab-dev
mailing list