[MOAB-dev] r5932 - MOAB/trunk/tools/mbcslam
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Fri Jan 11 10:54:40 CST 2013
Author: iulian
Date: 2013-01-11 10:54:40 -0600 (Fri, 11 Jan 2013)
New Revision: 5932
Modified:
MOAB/trunk/tools/mbcslam/Intx2Mesh.cpp
MOAB/trunk/tools/mbcslam/Intx2Mesh.hpp
MOAB/trunk/tools/mbcslam/Intx2MeshInPlane.hpp
Log:
revert to sending the index in the local entities range, from the target proc;
initially I was sending the ul (handle directly), which was wrong.
Modified: MOAB/trunk/tools/mbcslam/Intx2Mesh.cpp
===================================================================
--- MOAB/trunk/tools/mbcslam/Intx2Mesh.cpp 2013-01-11 16:26:50 UTC (rev 5931)
+++ MOAB/trunk/tools/mbcslam/Intx2Mesh.cpp 2013-01-11 16:54:40 UTC (rev 5932)
@@ -445,29 +445,29 @@
return rval;
// get the DP tag, and values for each node in the euler set
// get first all entities in the set
- Range local_ents;
- rval = mb->get_entities_by_dimension(euler_set, 2, local_ents);
+ localEnts.clear(); // just to make sure :)
+ rval = mb->get_entities_by_dimension(euler_set, 2, localEnts);
ERRORR(rval, "can't get ents by dimension");
// get all the owned nodes on this euler set
Range local_verts;
- rval = mb->get_connectivity(local_ents, local_verts);
+ rval = mb->get_connectivity(localEnts, local_verts);
if (parcomm)
{
// get only those that are owned by this proc
rval = parcomm->filter_pstatus(local_verts, PSTATUS_NOT_OWNED, PSTATUS_NOT);
ERRORR(rval, "can't filter verts");
- rval = parcomm->filter_pstatus(local_ents, PSTATUS_NOT_OWNED, PSTATUS_NOT);
+ rval = parcomm->filter_pstatus(localEnts, PSTATUS_NOT_OWNED, PSTATUS_NOT);
ERRORR(rval, "can't filter elements");
}
- rval = locate_departure_points(local_ents, local_verts);
+ rval = locate_departure_points(local_verts);
ERRORR(rval, "can't locate departure points");
return MB_SUCCESS;
}
// store
-ErrorCode Intx2Mesh::locate_departure_points(Range & local_elements, Range & local_verts)
+ErrorCode Intx2Mesh::locate_departure_points(Range & local_verts)
{
// get the DP tag , and get the departure points
Tag tagh = 0;
@@ -500,7 +500,7 @@
// store the remote handle (element) where the point is located in
// we do not need another array like mappedPts or locs
- source_pts.initialize(2, 0, 1, 0, target_pts.get_max());
+ source_pts.initialize(3, 0, 0, 0, target_pts.get_max());
source_pts.enableWriteAccess();
source_pts.set_n(0);
@@ -562,15 +562,15 @@
my_rank, target_pts.get_n(), num_from_me);
More information about the moab-dev
mailing list