From d073c28281a971fa8c622f6ae6db9cad1db59c0c Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 19 Aug 2004 11:07:20 +0000 Subject: [PATCH] If MPI2 is available container launches MPI_Init et MPI_Finalize for the future use of MPI methods. --- src/Container/SALOME_Container.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Container/SALOME_Container.cxx b/src/Container/SALOME_Container.cxx index 921c3ce26..1217b2bd7 100644 --- a/src/Container/SALOME_Container.cxx +++ b/src/Container/SALOME_Container.cxx @@ -42,6 +42,10 @@ using namespace std; #include #endif +#ifdef HAVE_MPI2 +#include +#endif + #include static PyMethodDef MethodPyVoidMethod[] = @@ -60,7 +64,9 @@ int main(int argc, char* argv[]) try { - +#ifdef HAVE_MPI2 + MPI_Init(&argc,&argv); +#endif // Initialise the ORB. ORB_INIT &init = *SINGLETON_::Instance() ; ASSERT(SINGLETON_::IsAlreadyExisting()) ; @@ -227,6 +233,9 @@ int main(int argc, char* argv[]) { INFOS("Caught unknown exception.") } +#ifdef HAVE_MPI2 + MPI_Finalize(); +#endif END_OF(argv[0]); } -- 2.39.2