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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Thu Jul 30 14:11:03 CDT 2009


Author: tautges
Date: 2009-07-30 14:11:03 -0500 (Thu, 30 Jul 2009)
New Revision: 3079

Modified:
   MOAB/trunk/parallel/MBParallelComm.cpp
Log:
Fixing a buffer size under-estimate when packing remote handles.



Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp	2009-07-30 18:51:22 UTC (rev 3078)
+++ MOAB/trunk/parallel/MBParallelComm.cpp	2009-07-30 19:11:03 UTC (rev 3079)
@@ -4223,7 +4223,8 @@
 {
     // 2 vectors of handles plus ints
   CHECK_BUFF_SPACE(buff, buff_ptr, ((L1p.size()+1)*sizeof(int) + 
-                                    L1hloc.size()*sizeof(MBEntityHandle)));
+                                    (L1hloc.size()+1)*sizeof(MBEntityHandle) + 
+                                    (L1hrem.size()+1)*sizeof(MBEntityHandle)));
   
     // should be in pairs of handles
   PACK_INT(buff_ptr, L1hloc.size());



More information about the moab-dev mailing list