edt = params[MAXWALLTIME];
if (params.find(MAXRAMSIZE) != params.end())
mem = params[MAXRAMSIZE];
+ if (params.find(QUEUE) != params.end())
+ queue = params[QUEUE].str();
string::size_type p1 = fileToExecute.find_last_of("/");
string::size_type p2 = fileToExecute.find_last_of(".");
tempOutputFile << "#PBS -l nodes=" << nodes_requested << endl;
}
if (queue != "")
- tempOutputFile << "#BSUB -q " << queue << endl;
+ tempOutputFile << "#PBS -q " << queue << endl;
if( edt > 0 )
tempOutputFile << "#PBS -l walltime=" << edt*60 << endl;
if( mem > 0 )
tempOutputFile << "#PBS -l mem=" << mem << "mb" << endl;
- tempOutputFile << "#PBS -o " << workDir << "/logs/output.log." << rootNameToExecute << endl ;
- tempOutputFile << "#PBS -e " << workDir << "/logs/error.log." << rootNameToExecute << endl ;
- tempOutputFile << "cd " << workDir << endl ;
- tempOutputFile << "./" + fileNameToExecute << endl;;
+ tempOutputFile << "#PBS -o " << workDir << "/logs/output.log." << rootNameToExecute << endl;
+ tempOutputFile << "#PBS -e " << workDir << "/logs/error.log." << rootNameToExecute << endl;
+ tempOutputFile << "cd " << workDir << endl;
+ tempOutputFile << "./" + fileNameToExecute << endl;
tempOutputFile.flush();
tempOutputFile.close();