From f45b4d052eb7911bb8c1b886a18673bb2965ebde Mon Sep 17 00:00:00 2001 From: ribes Date: Thu, 6 Nov 2008 14:38:33 +0000 Subject: [PATCH] - Patch for defining a queue name on Sun Grid Engine --- src/Batch/Batch_BatchManager_eSGE.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ; -- 2.39.2