[MOAB-dev] r5005 - MOAB/trunk/src

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Jun 15 09:45:35 CDT 2011


Author: iulian
Date: 2011-06-15 09:45:34 -0500 (Wed, 15 Jun 2011)
New Revision: 5005

Modified:
   MOAB/trunk/src/MeshSet.cpp
Log:
fix insertion logic when the ranges need to collapse


Modified: MOAB/trunk/src/MeshSet.cpp
===================================================================
--- MOAB/trunk/src/MeshSet.cpp	2011-06-14 20:57:46 UTC (rev 5004)
+++ MOAB/trunk/src/MeshSet.cpp	2011-06-15 14:45:34 UTC (rev 5005)
@@ -487,7 +487,7 @@
     }
     
       // merge subsequent blocks in meshset
-    for (;list_read != list_end && list_read[0]+1 <= i->second; list_read += 2) {
+    for (;list_read != list_end && list_read[0] <= i->second; list_read += 2) {
       if (adj)
       	for (EntityHandle h = list_write[1]+1; h < list_read[0]; ++h)
       	  adj->add_adjacency( h, my_handle, false );








































More information about the moab-dev mailing list