[MOAB-dev] r1657 - MOAB/trunk

tautges at mcs.anl.gov tautges at mcs.anl.gov
Thu Mar 13 16:39:23 CDT 2008


Author: tautges
Date: 2008-03-13 16:39:23 -0500 (Thu, 13 Mar 2008)
New Revision: 1657

Modified:
   MOAB/trunk/mbparallelcomm_test.cpp
Log:
Use get_number_entities_by_type instead of get_entities_by_type, to be more consistent with iMesh-based test.


Modified: MOAB/trunk/mbparallelcomm_test.cpp
===================================================================
--- MOAB/trunk/mbparallelcomm_test.cpp	2008-03-13 21:27:32 UTC (rev 1656)
+++ MOAB/trunk/mbparallelcomm_test.cpp	2008-03-13 21:39:23 UTC (rev 1657)
@@ -246,15 +246,16 @@
     // get and report various numbers...
   int rank = mbImpl->proc_rank();
   
-  MBRange matsets, geomsets, parsets, totsets;
+  MBRange matsets, geomsets, parsets;
+  int nsets;
   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()
+  result = mbImpl->get_number_entities_by_type(0, MBENTITYSET, nsets);
+  std::cout << "Proc " << rank << ": Total of " << nsets
             << " entity sets." << std::endl;
   
 #define PRINTSETS(a, b, c, p) \




More information about the moab-dev mailing list