[MOAB-dev] r4357 - MOAB/trunk/src/parallel

acaceres at mcs.anl.gov acaceres at mcs.anl.gov
Mon Dec 13 13:06:57 CST 2010


Author: acaceres
Date: 2010-12-13 13:06:57 -0600 (Mon, 13 Dec 2010)
New Revision: 4357

Modified:
   MOAB/trunk/src/parallel/transfer.c
Log:
added bounds check


Modified: MOAB/trunk/src/parallel/transfer.c
===================================================================
--- MOAB/trunk/src/parallel/transfer.c	2010-12-13 19:03:33 UTC (rev 4356)
+++ MOAB/trunk/src/parallel/transfer.c	2010-12-13 19:06:57 UTC (rev 4357)
@@ -41,6 +41,9 @@
   sint *ri; slong *rl; ulong *rul; real *rr;
   uint i, j, *buf, *len=0, *buf_end;
 
+  if(pf>=mi)
+    fail("pf expected to be in vi array (%d, %d)", pf, mi);
+
   /* sort to group by target proc */
   moab_tuple_list_sort(tl,pf,&crystal->all->buf);
 







































More information about the moab-dev mailing list