[MOAB-dev] r2235 - MOAB/trunk/parallel
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Nov 13 09:32:25 CST 2008
Author: kraftche
Date: 2008-11-13 09:32:25 -0600 (Thu, 13 Nov 2008)
New Revision: 2235
Modified:
MOAB/trunk/parallel/MBParallelComm.cpp
Log:
remove input part from list of neighbors
Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp 2008-11-13 03:50:17 UTC (rev 2234)
+++ MOAB/trunk/parallel/MBParallelComm.cpp 2008-11-13 15:32:25 UTC (rev 2235)
@@ -4217,7 +4217,13 @@
if (parts[j] != neighbors_out)
std::copy( parts[j], parts[j]+num_neighbors_out, neighbors_out );
- return MB_SUCCESS;
+
+ // remove input part from list
+ int id;
+ rval = get_part_id( part, id );
+ if (MB_SUCCESS == rval)
+ num_neighbors_out = std::remove( neighbors_out, neighbors_out+num_neighbors_out, id ) - neighbors_out;
+ return rval;
}
MBErrorCode MBParallelComm::get_interface_sets( MBEntityHandle ,
More information about the moab-dev
mailing list