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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Mar 21 09:54:56 CDT 2008


Author: tautges
Date: 2008-03-21 09:54:55 -0500 (Fri, 21 Mar 2008)
New Revision: 1675

Modified:
   MOAB/trunk/parallel/ReadParallel.cpp
Log:
If running on one proc, keep all the partition sets.



Modified: MOAB/trunk/parallel/ReadParallel.cpp
===================================================================
--- MOAB/trunk/parallel/ReadParallel.cpp	2008-03-20 18:50:32 UTC (rev 1674)
+++ MOAB/trunk/parallel/ReadParallel.cpp	2008-03-21 14:54:55 UTC (rev 1675)
@@ -365,9 +365,6 @@
     unsigned int num_sets = partition_sets.size() / proc_sz;
     if (proc_rk < (int) (partition_sets.size() % proc_sz)) num_sets++;
 
-      // cut them in half if we're on one proc
-    if (proc_sz == 1 && num_partsets == num_sets) num_sets /= 2;
-    
     for (unsigned int i = 0; i < num_sets; i++) 
       tmp_sets.insert(partition_sets[i*proc_sz + proc_rk]);
 




More information about the moab-dev mailing list