tempOutputFile << "#MSUB -o " << baseDir << "/logs/output.log." << rootNameToExecute << endl ;
tempOutputFile << "#MSUB -e " << baseDir << "/logs/error.log." << rootNameToExecute << endl ;
+ if (params.find(EXTRAPARAMS) != params.end())
+ tempOutputFile << params[EXTRAPARAMS] << endl;
+
tempOutputFile << "cd " << workDir << endl ;
// generate nodes file
def_Constant(EXCLUSIVE);
def_Constant(MEMPERCPU);
def_Constant(WCKEY);
+ def_Constant(EXTRAPARAMS);
// Parameters for COORM
def_Constant(LAUNCHER_FILE);
decl_extern_Constant(EXCLUSIVE);
decl_extern_Constant(MEMPERCPU);
decl_extern_Constant(WCKEY);
+ decl_extern_Constant(EXTRAPARAMS);
// Parameters for COORM
decl_extern_Constant(LAUNCHER_FILE);
addParameter("EXCLUSIVE", BOOL, 1);
addParameter("MEMPERCPU", LONG, 1);
addParameter("WCKEY", STRING, 1);
+ addParameter("EXTRAPARAMS", STRING, 1);
// Parameters for COORM
addParameter("LAUNCHER_FILE", STRING, 1);
tempOutputFile << "#SBATCH --partition=" << params[QUEUE] << endl;
if (params.find(WCKEY) != params.end())
tempOutputFile << "#SBATCH --wckey=" << params[WCKEY] << endl;
+ if (params.find(EXTRAPARAMS) != params.end())
+ tempOutputFile << params[EXTRAPARAMS] << endl;
// Define environment for the job
Environnement env = job.getEnvironnement();