[MOAB-dev] r2239 - MOAB/trunk/parallel
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Nov 13 14:01:52 CST 2008
Author: kraftche
Date: 2008-11-13 14:01:51 -0600 (Thu, 13 Nov 2008)
New Revision: 2239
Modified:
MOAB/trunk/parallel/MBParallelComm.cpp
Log:
fix bug getting entity owner. All implemented unit tests for iMeshP now pass
Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp 2008-11-13 19:28:26 UTC (rev 2238)
+++ MOAB/trunk/parallel/MBParallelComm.cpp 2008-11-13 20:01:51 UTC (rev 2239)
@@ -4301,8 +4301,8 @@
if (-1 != other_proc) {
// make sure we return owner first, as other functions
// (e.g. get_owning_part) assume that behavior
- const int my_idx = !(pstat & PSTATUS_NOT_OWNED);
- const int other_idx = 1 - my_idx;
+ const int other_idx = !(pstat & PSTATUS_NOT_OWNED);
+ const int my_idx = 1 - other_idx;
// return this processor and the other one
num_part_ids_out = 2;
part_ids_out[my_idx] = proc_config().proc_rank();
More information about the moab-dev
mailing list