[MOAB-dev] r4917 - MOAB/trunk/src/parallel
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Wed Jun 1 21:45:51 CDT 2011
Author: tautges
Date: 2011-06-01 21:45:44 -0500 (Wed, 01 Jun 2011)
New Revision: 4917
Modified:
MOAB/trunk/src/parallel/ParallelComm.cpp
Log:
Eliminate another instance of an indexed range, this time in tag_shared_verts.
Speeds up shared interface resolution a bit.
Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp 2011-06-01 23:01:46 UTC (rev 4916)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp 2011-06-02 02:45:44 UTC (rev 4917)
@@ -4042,12 +4042,15 @@
unsigned int j = 0, i = 0;
std::vector<int> sharing_procs, sharing_procs2;
- std::vector<EntityHandle> sharing_handles, sharing_handles2;
+ std::vector<EntityHandle> sharing_handles, sharing_handles2, skin_verts(skin_ents[0].size());
+ for (Range::iterator rit = skin_ents[0].begin(); rit != skin_ents[0].end(); rit++, i++)
+ skin_verts[i] = *rit;
+ i = 0;
while (j < 2*shared_ents.n) {
// count & accumulate sharing procs
int this_idx = shared_ents.vi[j];
- EntityHandle this_ent = skin_ents[0][this_idx];
+ EntityHandle this_ent = skin_verts[this_idx];
while (j < 2*shared_ents.n && shared_ents.vi[j] == this_idx) {
j++;
// shouldn't have same proc
More information about the moab-dev
mailing list