From c95bc557c9cc1fa6f422482ffa0b69c59e20f903 Mon Sep 17 00:00:00 2001 From: secher Date: Fri, 6 May 2011 12:16:57 +0000 Subject: [PATCH] to correct problem of machine with long hostname like name.domaine --- src/Container/SALOME_ContainerManager.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index f960e152c..21d5a0065 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -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 ){ -- 2.39.2