From: barate Date: Tue, 30 Nov 2010 10:29:25 +0000 (+0000) Subject: Added environment for LoadLeveler jobs X-Git-Tag: V1_3_0rc1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4cdf1853ce02d04f9649d640b391dc6300b41da;p=tools%2Flibbatch.git Added environment for LoadLeveler jobs --- diff --git a/src/LoadLeveler/Batch_BatchManager_eLL.cxx b/src/LoadLeveler/Batch_BatchManager_eLL.cxx index 9044a96..6628228 100644 --- a/src/LoadLeveler/Batch_BatchManager_eLL.cxx +++ b/src/LoadLeveler/Batch_BatchManager_eLL.cxx @@ -149,6 +149,18 @@ namespace Batch { tempOutputFile << "# @ error = " << workDir << "/logs/error.log." << rootNameToExecute << endl; if (queue != "") tempOutputFile << "# @ class = " << queue << endl; + + // Define environment for the job + Environnement env = job.getEnvironnement(); + if (!env.empty()) { + tempOutputFile << "# @ environment = "; + Environnement::const_iterator iter; + for (iter = env.begin() ; iter != env.end() ; ++iter) { + tempOutputFile << iter->first << "=" << iter->second << "; "; + } + tempOutputFile << endl; + } + tempOutputFile << "# @ job_type = bluegene" << endl; tempOutputFile << "# @ queue" << endl;