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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed Jul 29 15:30:13 CDT 2009


Author: kraftche
Date: 2009-07-29 15:30:13 -0500 (Wed, 29 Jul 2009)
New Revision: 3070

Modified:
   MOAB/trunk/parallel/MBParallelComm.cpp
Log:
filter of empty range should return nothing, not assert.  fixes running parallel_unit_tests on 1 cpu

Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp	2009-07-29 19:53:15 UTC (rev 3069)
+++ MOAB/trunk/parallel/MBParallelComm.cpp	2009-07-29 20:30:13 UTC (rev 3070)
@@ -3451,7 +3451,12 @@
 {
   MBRange tmp_ents;
 
-  assert(!ents.empty());
+  //assert(!ents.empty());
+  if (ents.empty()) {
+    if (returned_ents)
+      returned_ents->clear();
+    return MB_SUCCESS;
+  }
 
     // Put into tmp_ents any entities which are not owned locally or
     // who are already shared with to_proc



More information about the moab-dev mailing list