From 98acf0ce61075acbd052ad6fc8f3b13c6c7af86e Mon Sep 17 00:00:00 2001 From: secher Date: Thu, 24 Jun 2010 10:05:50 +0000 Subject: [PATCH] improvement about OMPI_URI_FILE --- src/Container/SALOME_ContainerManager.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2