[MOAB-dev] r5804 - MOAB/trunk/src/parallel
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Thu Oct 18 00:20:20 CDT 2012
Author: iulian
Date: 2012-10-18 00:20:20 -0500 (Thu, 18 Oct 2012)
New Revision: 5804
Modified:
MOAB/trunk/src/parallel/ParallelComm.cpp
Log:
multishared interface sets set initially a multishared handle tag that is
0 almost everywhere, except the itself handle.
Before this fix, the first k values, where k is the number of procs
that multishare this set, got initialized with garbage (it should
really null them). They will get the proper handles later on, anyway, so
it is not really an issue.
Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp 2012-10-17 18:52:04 UTC (rev 5803)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp 2012-10-18 05:20:20 UTC (rev 5804)
@@ -4742,7 +4742,7 @@
unsigned int ind = std::find(proc_ids, proc_ids+vit->first.size(), procConfig.proc_rank())
- proc_ids;
assert(ind < vit->first.size());
- std::fill( proc_handles + vit->first.size(), proc_handles + MAX_SHARING_PROCS, 0);
+ std::fill( proc_handles, proc_handles + MAX_SHARING_PROCS, 0);
proc_handles[ind] = new_set;
result = mbImpl->tag_set_data(sharedhs_tag, &new_set, 1, proc_handles);
}
More information about the moab-dev
mailing list