From: secher Date: Thu, 24 Jun 2010 10:05:50 +0000 (+0000) Subject: improvement about OMPI_URI_FILE X-Git-Tag: Plotenh~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98acf0ce61075acbd052ad6fc8f3b13c6c7af86e;p=modules%2Fkernel.git improvement about OMPI_URI_FILE --- diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 8412d2f91..81fdcccc0 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -86,6 +86,11 @@ SALOME_ContainerManager::SALOME_ContainerManager(CORBA::ORB_ptr orb, PortableSer #ifdef HAVE_MPI2 #ifdef WITHOPENMPI + std::string urifile = getenv("HOME"); + std::ostringstream mypid; + mypid << getpid(); + urifile += "/.urifile_" + mypid.str(); + setenv("OMPI_URI_FILE",urifile.c_str(),0); if( getenv("OMPI_URI_FILE") != NULL ){ system("killall ompi-server"); std::string command;