[MOAB-dev] r4185 - MOAB/trunk/test/perf

tautges at mcs.anl.gov tautges at mcs.anl.gov
Wed Sep 29 21:35:31 CDT 2010


Author: tautges
Date: 2010-09-29 21:35:31 -0500 (Wed, 29 Sep 2010)
New Revision: 4185

Modified:
   MOAB/trunk/test/perf/perf.cpp
Log:
Didn't have element centroid calculation in e-v query.



Modified: MOAB/trunk/test/perf/perf.cpp
===================================================================
--- MOAB/trunk/test/perf/perf.cpp	2010-09-29 21:16:32 UTC (rev 4184)
+++ MOAB/trunk/test/perf/perf.cpp	2010-09-30 02:35:31 UTC (rev 4185)
@@ -371,6 +371,13 @@
     assert(MB_SUCCESS == result);
     result = gMB->get_coords(&connect[0], connect.size(), dum_coords);
     assert(MB_SUCCESS == result);
+
+    double centroid[3] = {0.0, 0.0, 0.0};
+    for (int j = 0; j < 24; j++) {
+      centroid[0] += dum_coords[j++];
+      centroid[1] += dum_coords[j++];
+      centroid[2] += dum_coords[j++];
+    }
   }
 }
 



































More information about the moab-dev mailing list