From: ageay Date: Thu, 19 Aug 2004 11:07:20 +0000 (+0000) Subject: If MPI2 is available container launches MPI_Init et MPI_Finalize for the future use... X-Git-Tag: BR_GEAY_20041105~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d073c28281a971fa8c622f6ae6db9cad1db59c0c;p=modules%2Fkernel.git If MPI2 is available container launches MPI_Init et MPI_Finalize for the future use of MPI methods. --- 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]); }