[MOAB-dev] r1895 - MOAB/trunk
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Fri Jun 13 12:43:16 CDT 2008
Author: kraftche
Date: 2008-06-13 12:43:16 -0500 (Fri, 13 Jun 2008)
New Revision: 1895
Modified:
MOAB/trunk/MBMeshSet.cpp
Log:
Fix bug where duplicate ranges were inserted into range-based sets, causing the results of get_number_entitiess_* to be inconsitant with get_entities_* for range-based sets when the entities are requested as an MBRange
Modified: MOAB/trunk/MBMeshSet.cpp
===================================================================
--- MOAB/trunk/MBMeshSet.cpp 2008-06-13 05:53:54 UTC (rev 1894)
+++ MOAB/trunk/MBMeshSet.cpp 2008-06-13 17:43:16 UTC (rev 1895)
@@ -1009,6 +1009,7 @@
vect_out.resize( vect_in_len );
std::copy( vect_in, vect_in+vect_in_len, vect_out.begin() );
std::sort( vect_out.begin(), vect_out.end() );
+ vect_out.erase( std::unique( vect_out.begin(), vect_out.end() ), vect_out.end() );
// duplicate all entries
vect_out.resize( vect_out.size() * 2 );
More information about the moab-dev
mailing list