[MOAB-dev] r3143 - MOAB/trunk/tools/mbzoltan
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue Sep 15 15:34:41 CDT 2009
Author: kraftche
Date: 2009-09-15 15:34:40 -0500 (Tue, 15 Sep 2009)
New Revision: 3143
Modified:
MOAB/trunk/tools/mbzoltan/MBZoltan.cpp
Log:
fix segfault by mbzoltan with current MBParallelComm API
Modified: MOAB/trunk/tools/mbzoltan/MBZoltan.cpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/MBZoltan.cpp 2009-09-15 20:33:56 UTC (rev 3142)
+++ MOAB/trunk/tools/mbzoltan/MBZoltan.cpp 2009-09-15 20:34:40 UTC (rev 3143)
@@ -20,8 +20,6 @@
*
*/
-#include <zoltan_cpp.h>
-
#include <iostream>
#include <assert.h>
@@ -59,6 +57,8 @@
argvArg(argv)
{
mbpc = MBParallelComm::get_pcomm(mbImpl, 0);
+ if (!mbpc)
+ mbpc = new MBParallelComm( impl, MPI_COMM_WORLD, 0 );
}
MBZoltan::~MBZoltan()
More information about the moab-dev
mailing list