[MOAB-dev] r1653 - MOAB/trunk
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Thu Mar 13 15:44:30 CDT 2008
Author: tautges
Date: 2008-03-13 15:44:30 -0500 (Thu, 13 Mar 2008)
New Revision: 1653
Modified:
MOAB/trunk/mbparallelcomm_test.cpp
Log:
Add reporting of total # of sets.
Modified: MOAB/trunk/mbparallelcomm_test.cpp
===================================================================
--- MOAB/trunk/mbparallelcomm_test.cpp 2008-03-13 20:38:11 UTC (rev 1652)
+++ MOAB/trunk/mbparallelcomm_test.cpp 2008-03-13 20:44:30 UTC (rev 1653)
@@ -246,13 +246,17 @@
// get and report various numbers...
int rank = mbImpl->proc_rank();
- MBRange matsets, geomsets, parsets;
+ MBRange matsets, geomsets, parsets, totsets;
MBTag mtag = 0, gtag = 0, ptag = 0, gidtag;
MBErrorCode result = mbImpl->tag_get_handle("MATERIAL_SET", mtag);
result = mbImpl->tag_get_handle("GEOM_DIMENSION", gtag);
result = mbImpl->tag_get_handle("PARALLEL_PARTITION", ptag);
result = mbImpl->tag_get_handle("GLOBAL_ID", gidtag);
+ result = mbImpl->get_entities_by_type(0, MBENTITYSET, totsets);
+ std::cout << "Proc " << rank << ": Total of " << totsets.size()
+ << " entity sets." << std::endl;
+
#define PRINTSETS(a, b, c, p) \
if (a) {\
result = mbImpl->get_entities_by_type_and_tag(0, MBENTITYSET, & a,\
More information about the moab-dev
mailing list