[MOAB-dev] r1719 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Mar 28 15:06:44 CDT 2008


Author: kraftche
Date: 2008-03-28 15:06:44 -0500 (Fri, 28 Mar 2008)
New Revision: 1719

Modified:
   MOAB/trunk/MBAdaptiveKDTree.cpp
Log:
fix bug in tree construction

Modified: MOAB/trunk/MBAdaptiveKDTree.cpp
===================================================================
--- MOAB/trunk/MBAdaptiveKDTree.cpp	2008-03-28 19:25:35 UTC (rev 1718)
+++ MOAB/trunk/MBAdaptiveKDTree.cpp	2008-03-28 20:06:44 UTC (rev 1719)
@@ -1030,7 +1030,7 @@
       {
         size_t rnd;
         do { 
-          size_t rnd = rand();
+          rnd = rand();
           for (int i = num_rand; i > 1; --i)
             rnd *= rand();
           rnd %= coords.size();




More information about the moab-dev mailing list