[MOAB-dev] r1855 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed May 28 18:56:31 CDT 2008


Author: kraftche
Date: 2008-05-28 18:56:31 -0500 (Wed, 28 May 2008)
New Revision: 1855

Modified:
   MOAB/trunk/MBGeomUtil.cpp
Log:
Fix bug in previous checkin: use of uninitalized memory.

The corrected implementation is slower 40% than the buggy one.  The
overall reduction in tree build time as compared to the original
box_hex_overlap is 66% rather than 79%.



Modified: MOAB/trunk/MBGeomUtil.cpp
===================================================================
--- MOAB/trunk/MBGeomUtil.cpp	2008-05-28 22:02:45 UTC (rev 1854)
+++ MOAB/trunk/MBGeomUtil.cpp	2008-05-28 23:56:31 UTC (rev 1855)
@@ -510,6 +510,7 @@
   const MBCartVect corners[8] = { elem_corners[0] - center,
                                   elem_corners[1] - center,
                                   elem_corners[2] - center,
+                                  elem_corners[3] - center,
                                   elem_corners[4] - center,
                                   elem_corners[5] - center,
                                   elem_corners[6] - center,




More information about the moab-dev mailing list