From f4cdf1853ce02d04f9649d640b391dc6300b41da Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 30 Nov 2010 10:29:25 +0000 Subject: [PATCH] Added environment for LoadLeveler jobs --- src/LoadLeveler/Batch_BatchManager_eLL.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.39.2