[MOAB-dev] r1212 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Jul 18 14:13:45 CDT 2007


Author: kraftche
Date: 2007-07-18 14:13:45 -0500 (Wed, 18 Jul 2007)
New Revision: 1212

Modified:
   MOAB/trunk/MBCore.cpp
Log:
Fix bug in function for blocked coordinate access that I added on May 15, 2007

Modified: MOAB/trunk/MBCore.cpp
===================================================================
--- MOAB/trunk/MBCore.cpp	2007-07-18 18:25:05 UTC (rev 1211)
+++ MOAB/trunk/MBCore.cpp	2007-07-18 19:13:45 UTC (rev 1212)
@@ -574,7 +574,7 @@
       if (*iter > end_ent) // trim block to those in the sequence
         iter -= *iter - end_ent;
        
-      const MBEntityID offset = start_ent - range_start;
+      const MBEntityID offset = range_start - start_ent;
       const MBEntityID count = *iter - range_start + 1;
       ++iter; // done with iter for this iteration, advance to next handle
       




More information about the moab-dev mailing list