[MOAB-dev] r1313 - MOAB/trunk

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Oct 12 14:58:43 CDT 2007


Author: tautges
Date: 2007-10-12 14:58:43 -0500 (Fri, 12 Oct 2007)
New Revision: 1313

Modified:
   MOAB/trunk/mbparallelcomm_test.cpp
Log:
Wasn't computing the expected # shared vertices correctly.




Modified: MOAB/trunk/mbparallelcomm_test.cpp
===================================================================
--- MOAB/trunk/mbparallelcomm_test.cpp	2007-10-12 19:14:27 UTC (rev 1312)
+++ MOAB/trunk/mbparallelcomm_test.cpp	2007-10-12 19:58:43 UTC (rev 1313)
@@ -312,6 +312,8 @@
   if (MB_SUCCESS != result) RR("Failed to set global_id tag.", MB_FAILURE);
 
   nshared = (IJK+1) * (IJK+1);
+
+  if (my_rank != 0 && my_rank != mbImpl->proc_size()-1) nshared *= 2;
   
   return result;
 }




More information about the moab-dev mailing list