From: ribes Date: Thu, 6 Nov 2008 14:38:33 +0000 (+0000) Subject: - Patch for defining a queue name on Sun Grid Engine X-Git-Tag: V4_1_4~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f45b4d052eb7911bb8c1b886a18673bb2965ebde;p=modules%2Fkernel.git - Patch for defining a queue name on Sun Grid Engine --- diff --git a/src/Batch/Batch_BatchManager_eSGE.cxx b/src/Batch/Batch_BatchManager_eSGE.cxx index 28fb45f45..d514ea788 100644 --- a/src/Batch/Batch_BatchManager_eSGE.cxx +++ b/src/Batch/Batch_BatchManager_eSGE.cxx @@ -244,6 +244,7 @@ namespace Batch { const std::string dirForTmpFiles = params[TMPDIR]; const string fileToExecute = params[EXECUTABLE]; const string home = params[HOMEDIR]; + const std::string queue = params[QUEUE]; std::string rootNameToExecute; std::string fileNameToExecute; std::string filelogtemp; @@ -265,6 +266,8 @@ namespace Batch { tempOutputFile.open(TmpFileName.c_str(), ofstream::out ); tempOutputFile << "#! /bin/sh -f" << endl; + if (queue != "") + tempOutputFile << "#$ -q " << queue << endl; tempOutputFile << "#$ -pe mpich " << nbproc << endl; if( edt > 0 ) tempOutputFile << "#$ -l h_rt=" << getWallTime(edt) << endl ;