[MOAB-dev] r3664 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Mar 18 11:25:37 CDT 2010


Author: kraftche
Date: 2010-03-18 11:25:37 -0500 (Thu, 18 Mar 2010)
New Revision: 3664

Modified:
   MOAB/trunk/src/Core.cpp
Log:
use PARALLEL_COMM as option name for specifying PComm instance that ReadParallel should use

Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp	2010-03-18 15:50:14 UTC (rev 3663)
+++ MOAB/trunk/src/Core.cpp	2010-03-18 16:25:37 UTC (rev 3664)
@@ -369,7 +369,9 @@
 #ifdef USE_MPI    
     ParallelComm* pcomm = 0;
     int pcomm_id;
-    rval = opts.get_int_option( "PCOMM", pcomm_id );
+    rval = opts.get_int_option( "PARALLEL_COMM", pcomm_id );
+    if (MB_ENTITY_NOT_FOUND == rval)
+      rval = opts.get_int_option( "PCOMM", pcomm_id );
     if (rval == MB_SUCCESS) {
       pcomm = ParallelComm::get_pcomm( this, pcomm_id );
       if (!pcomm)



More information about the moab-dev mailing list