]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
improvement about OMPI_URI_FILE
authorsecher <secher>
Thu, 24 Jun 2010 10:05:50 +0000 (10:05 +0000)
committersecher <secher>
Thu, 24 Jun 2010 10:05:50 +0000 (10:05 +0000)
src/Container/SALOME_ContainerManager.cxx

index 8412d2f91735625bd1fc76b60c6128126c50936c..81fdcccc0852fec5190e70f9124789875a4978cc 100644 (file)
@@ -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;