[MOAB-dev] r4351 - MOAB/branches/Version4.0/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Dec 10 12:47:13 CST 2010


Author: kraftche
Date: 2010-12-10 12:47:13 -0600 (Fri, 10 Dec 2010)
New Revision: 4351

Modified:
   MOAB/branches/Version4.0/src/SequenceManager.cpp
Log:
fix bug getting entities by dense tag value

Modified: MOAB/branches/Version4.0/src/SequenceManager.cpp
===================================================================
--- MOAB/branches/Version4.0/src/SequenceManager.cpp	2010-12-10 18:20:01 UTC (rev 4350)
+++ MOAB/branches/Version4.0/src/SequenceManager.cpp	2010-12-10 18:47:13 UTC (rev 4351)
@@ -1039,7 +1039,6 @@
   
   const char* data = reinterpret_cast<const char*>(values);
 
-  Range::const_pair_iterator p = handles.begin();
   for (Range::const_pair_iterator p = handles.const_pair_begin(); 
        p != handles.const_pair_end(); ++p) {
        
@@ -1102,7 +1101,6 @@
 
   const bool step = !one_value;
 
-  Range::const_pair_iterator p = handles.begin();
   for (Range::const_pair_iterator p = handles.const_pair_begin(); 
        p != handles.const_pair_end(); ++p) {
        
@@ -1585,7 +1583,7 @@
     
   Range::iterator insert = entities_out.begin();
   Range::const_pair_iterator p = type == MBMAXTYPE ? range.begin() : range.lower_bound(type);         
-  for (Range::const_pair_iterator p = range.const_pair_begin(); 
+  for (; 
        p != range.const_pair_end() && 
        (MBMAXTYPE == type || TYPE_FROM_HANDLE(p->first) == type); 
        ++p) {
























More information about the moab-dev mailing list