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

xbxu at mcs.anl.gov xbxu at mcs.anl.gov
Sat Apr 9 19:27:03 CDT 2011


Author: xbxu
Date: 2011-04-09 19:27:03 -0500 (Sat, 09 Apr 2011)
New Revision: 4729

Modified:
   MOAB/trunk/src/parallel/ReadParallel.cpp
Log:
avoid resolving shared ents on one processor

Modified: MOAB/trunk/src/parallel/ReadParallel.cpp
===================================================================
--- MOAB/trunk/src/parallel/ReadParallel.cpp	2011-04-08 22:27:06 UTC (rev 4728)
+++ MOAB/trunk/src/parallel/ReadParallel.cpp	2011-04-10 00:27:03 UTC (rev 4729)
@@ -465,9 +465,12 @@
 //==================
       case PA_RESOLVE_SHARED_ENTS:
           myDebug.tprint(1,"Resolving shared entities.\n");
-
-          tmp_result = myPcomm->resolve_shared_ents(file_set, resolve_dim, shared_dim,
-                                                    use_id_tag ? file_id_tag : 0);
+	  
+	  if (myPcomm->size() == 1)
+	    tmp_result = MB_SUCCESS;
+	  else
+	    tmp_result = myPcomm->resolve_shared_ents(file_set, resolve_dim, shared_dim,
+						      use_id_tag ? file_id_tag : 0);
           break;
         
 //==================

































More information about the moab-dev mailing list