[MOAB-dev] r2106 - MOAB/trunk/parallel

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Sep 29 16:49:49 CDT 2008


Author: kraftche
Date: 2008-09-29 16:49:47 -0500 (Mon, 29 Sep 2008)
New Revision: 2106

Modified:
   MOAB/trunk/parallel/parallel_unit_tests.cpp
Log:
fix bug in test code

Modified: MOAB/trunk/parallel/parallel_unit_tests.cpp
===================================================================
--- MOAB/trunk/parallel/parallel_unit_tests.cpp	2008-09-29 20:57:42 UTC (rev 2105)
+++ MOAB/trunk/parallel/parallel_unit_tests.cpp	2008-09-29 21:49:47 UTC (rev 2106)
@@ -163,10 +163,9 @@
   }
   
   int procs[MAX_SHARING_PROCS];
-  rval = moab.tag_get_data( sharedp_tag, &entity, 1, procs ); CHKERR(rval);
-  for (int i = 0; i < MAX_SHARING_PROCS; ++i)
-    if (procs[i] >= 0)
-      other_procs_out.push_back(procs[i]);
+  rval = moab.tag_get_data( sharedps_tag, &entity, 1, procs ); CHKERR(rval);
+  for (int i = 0; i < MAX_SHARING_PROCS && procs[i] >= 0; ++i)
+    other_procs_out.push_back(procs[i]);
   return MB_SUCCESS;
 }
   




More information about the moab-dev mailing list