[MOAB-dev] r4161 - MOAB/trunk/src
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Mon Sep 27 12:58:00 CDT 2010
Author: tautges
Date: 2010-09-27 12:57:59 -0500 (Mon, 27 Sep 2010)
New Revision: 4161
Modified:
MOAB/trunk/src/Core.cpp
Log:
Surrounding MPE stuff with #ifdef USE_MPI.
Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp 2010-09-27 14:17:56 UTC (rev 4160)
+++ MOAB/trunk/src/Core.cpp 2010-09-27 17:57:59 UTC (rev 4161)
@@ -81,7 +81,9 @@
#include "nsMemory.h"
#endif
+#ifdef USE_MPI
#include "moab_mpe.h"
+#endif
namespace moab {
@@ -153,9 +155,11 @@
ErrorCode Core::initialize()
{
+#ifdef USE_MPI
writeMPELog = ! MPE_Initialized_logging();
if (writeMPELog)
MPE_Init_log();
+#endif
geometricDimension = 3;
materialTag = 0;
@@ -236,6 +240,7 @@
delete mError;
mError = 0;
+#ifdef USE_MPI
if (writeMPELog) {
const char* default_log = MOAB_MPE_LOG;
const char* logfile = getenv("MPE_LOG_FILE");
@@ -243,6 +248,7 @@
logfile = default_log;
MPE_Finish_log( logfile );
}
+#endif
}
ErrorCode Core::query_interface(const std::string& iface_name, void** iface)
More information about the moab-dev
mailing list