]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
to correct problem of machine with long hostname like name.domaine V6_3_0b1
authorsecher <secher>
Fri, 6 May 2011 12:18:04 +0000 (12:18 +0000)
committersecher <secher>
Fri, 6 May 2011 12:18:04 +0000 (12:18 +0000)
src/Container/SALOME_ContainerManager.cxx

index f960e152c1c96d41d06afc39c2dd2fce51890ede..21d5a0065b842e8bb2bff2fc0a6d14c4d9481bd6 100644 (file)
@@ -1065,13 +1065,13 @@ std::string SALOME_ContainerManager::GetMPIZeroNode(const std::string machine, c
           ASSERT(getenv("NSPORT"));
           command += getenv("NSPORT"); // port of CORBA name server
 
-          command += " mpirun -np 1 hostname > " + tmpFile;
+          command += " mpirun -np 1 hostname -s > " + tmpFile;
         }
       else
-        command = "mpirun -np 1 hostname > " + tmpFile;
+        command = "mpirun -np 1 hostname -s > " + tmpFile;
     }
   else
-    command = "mpirun -np 1 -machinefile " + machinesFile + " hostname > " + tmpFile;
+    command = "mpirun -np 1 -machinefile " + machinesFile + " hostname -s > " + tmpFile;
 
   status = system(command.c_str());
   if( status == 0 ){