From ab326ef111719f23e88bb6e6e38de2e0ac3c69f4 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 3 Apr 2023 17:54:32 +0200 Subject: [PATCH] cleanup --- src/Container/SALOME_ContainerManager.cxx | 69 ----------------------- 1 file changed, 69 deletions(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 54de26182..006578eea 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -988,76 +988,7 @@ std::string SALOME_ContainerManager::BuildCommandToLaunchLocalContainer(const En std::ostringstream o; o << command_from_template << " "; - - /* //============================================================================ - if (params.isMPI) - { - int nbproc = params.nb_proc <= 0 ? 1 : params.nb_proc; - - o << "mpirun -np "; - - o << nbproc << " "; - - if( GetenvThreadSafe("LIBBATCH_NODEFILE") != NULL ) - o << "-machinefile " << machinesFile << " "; - -#ifdef LAM_MPI - o << "-x PATH,LD_LIBRARY_PATH,OMNIORB_CONFIG,SALOME_trace "; -#elif defined(OPEN_MPI) - if( GetenvThreadSafe("OMPI_URI_FILE") == NULL ) - o << "-x PATH -x LD_LIBRARY_PATH -x OMNIORB_CONFIG -x SALOME_trace"; - else - { - o << "-x PATH -x LD_LIBRARY_PATH -x OMNIORB_CONFIG -x SALOME_trace -ompi-server file:"; - o << GetenvThreadSafeAsString("OMPI_URI_FILE"); - } -#elif defined(MPICH) - o << "-nameserver " + Kernel_Utils::GetHostname(); -#endif - - if (isPythonContainer(params.container_name)) - o << " pyMPI SALOME_ContainerPy.py "; - else - o << " SALOME_MPIContainer "; - } - - else - { - std::string wdir=params.workingdir.in(); - if(wdir != "") - { - // a working directory is requested - if(wdir == "$TEMPDIR") - { - // a new temporary directory is requested - std::string dir = Kernel_Utils::GetTmpDir(); -#ifdef WIN32 - o << "cd /d " << dir << std::endl; -#else - o << "cd " << dir << ";"; -#endif - - } - else - { - // a permanent directory is requested use it or create it -#ifdef WIN32 - o << "mkdir " + wdir << std::endl; - o << "cd /D " + wdir << std::endl; -#else - o << "mkdir -p " << wdir << " && cd " << wdir + ";"; -#endif - } - } - - if (isPythonContainer(params.container_name)) - o << "SALOME_ContainerPy.py "; - else - o << container_exe + " "; - - } - o << _NS->ContainerName(params) << " "; //==================================================================================== */ if( this->_isSSL ) -- 2.39.2