// Module : SALOME
// $Header$
//
-#ifdef HAVE_MPI2
+#ifdef _MPI_SEQ_CONTAINER_
+ #ifdef HAVE_MPI2
#include <mpi.h>
+ #endif
#endif
#include <iostream>
-#include <strstream>
+#include <sstream>
#include <string>
#include <stdio.h>
#include <time.h>
int main(int argc, char* argv[])
{
-#ifdef HAVE_MPI2
+#ifdef _MPI_SEQ_CONTAINER_
+ #ifdef HAVE_MPI2
MPI_Init(&argc,&argv);
-#endif
+ #endif
+#endif
#ifndef WIN32
if(getenv ("DEBUGGER"))
if (!isSupervContainer)
{
PyGILState_Ensure();
- //Delete python container that destroy orb from python (pyCont._orb.destroy())
+ //Destroy orb from python (for chasing memory leaks)
+ //PyRun_SimpleString("from omniORB import CORBA");
+ //PyRun_SimpleString("orb=CORBA.ORB_init([''], CORBA.ORB_ID)");
+ //PyRun_SimpleString("orb.destroy()");
Py_Finalize();
}
else
INFOS("Caught unknown exception.");
}
-#ifdef HAVE_MPI2
+#ifdef _MPI_SEQ_CONTAINER_
+ #ifdef HAVE_MPI2
MPI_Finalize();
-#endif
+ #endif
+#endif
- //END_OF(argv[0]);
- //LocalTraceBufferPool* bp1 = LocalTraceBufferPool::instance();
- //bp1->deleteInstance(bp1);
return 0 ;
}