[MOAB-dev] r2973 - MOAB/branches/parallel_ghosting/parallel

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Jun 26 17:39:15 CDT 2009


Author: tautges
Date: 2009-06-26 17:39:15 -0500 (Fri, 26 Jun 2009)
New Revision: 2973

Modified:
   MOAB/branches/parallel_ghosting/parallel/MBParallelComm.cpp
Log:
Need to initialize receive buffers to non-zero size.



Modified: MOAB/branches/parallel_ghosting/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/branches/parallel_ghosting/parallel/MBParallelComm.cpp	2009-06-26 22:22:55 UTC (rev 2972)
+++ MOAB/branches/parallel_ghosting/parallel/MBParallelComm.cpp	2009-06-26 22:39:15 UTC (rev 2973)
@@ -331,9 +331,9 @@
     ind = buffProcs.size();
     buffProcs.push_back((unsigned int)to_proc);
     ownerSBuffs.push_back(std::vector<unsigned char>());
-    ghostRBuffs.push_back(std::vector<unsigned char>());
+    ghostRBuffs.push_back(std::vector<unsigned char>(INITIAL_BUFF_SIZE));
       // allocate these other buffs in case we're storing remote handles
-    ownerRBuffs.push_back(std::vector<unsigned char>());
+    ownerRBuffs.push_back(std::vector<unsigned char>(INITIAL_BUFF_SIZE));
     ghostSBuffs.push_back(std::vector<unsigned char>());
     if (is_new) *is_new = true;
   }



More information about the moab-dev mailing list