[MOAB-dev] r1750 - MOAB/trunk
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Tue Apr 8 11:07:50 CDT 2008
Author: kraftche
Date: 2008-04-08 11:07:50 -0500 (Tue, 08 Apr 2008)
New Revision: 1750
Modified:
MOAB/trunk/WriteHDF5.cpp
Log:
work-around for g++3.3 (Debian 1:3.3.6-15) optimization bug
Modified: MOAB/trunk/WriteHDF5.cpp
===================================================================
--- MOAB/trunk/WriteHDF5.cpp 2008-04-08 03:48:29 UTC (rev 1749)
+++ MOAB/trunk/WriteHDF5.cpp 2008-04-08 16:07:50 UTC (rev 1750)
@@ -215,7 +215,16 @@
MBRange::const_pair_iterator pi;
for (pi = entities.const_pair_begin(); pi != entities.const_pair_end(); ++pi) {
const MBEntityHandle n = pi->second - pi->first + 1;
- if (idMap.end() == idMap.insert( pi->first, id, n ))
+#ifdef DEBUG
+ printf( "Assigning %s %lu to %lu to file IDs [%lu,%lu]\n",
+ MBCN::EntityTypeName(TYPE_FROM_HANDLE(pi->first)),
+ (unsigned long)(ID_FROM_HANDLE(pi->first)),
+ (unsigned long)(ID_FROM_HANDLE(pi->first)+n-1),
+ (unsigned long)id,
+ (unsigned long)(id+n-1));
+#endif
+ RangeMap<MBEntityHandle,id_t>::iterator it = idMap.insert( pi->first, id, n );
+ if (idMap.end() == it)
return MB_FAILURE;
id += n;
}
More information about the moab-dev
mailing list