return remoteFileName;
}
- const string BatchManager_COORM::convertSecTo_H_M_S(const long seconds)
- {
- int h(seconds / 3600);
- int m((seconds % 3600) / 60);
- int s((seconds % 3600) % 60);
-
- stringstream ss;
- ss << h << ":" << m << ":" << s;
-
- return ss.str();
- }
-
void BatchManager_COORM::exportInputFiles(const Job & job)
{
BatchManager::exportInputFiles(job);
string fileToExecute = "";
string tmpDir = "";
int nbproc = 0;
- int edt = 0;
int mem = 0;
string queue = "";
int nbprocpernode = 1;
if (params.find(NBPROCPERNODE) != params.end())
nbprocpernode = params[NBPROCPERNODE];
+ long walltimeSecs = 0;
if (params.find(MAXWALLTIME) != params.end())
- edt = params[MAXWALLTIME];
+ walltimeSecs = (long)params[MAXWALLTIME] * 60;
if (params.find(MAXRAMSIZE) != params.end())
mem = params[MAXRAMSIZE];
if (params.find(QUEUE) != params.end())
if (nb_full_nodes > 0)
{
tempOutputFile << "#OAR -l nodes=" << nb_full_nodes;
- if (edt > 0)
+ if (walltimeSecs > 0)
{
- tempOutputFile << ",walltime=" << convertSecTo_H_M_S(edt) << endl;
+ tempOutputFile << ",walltime=" << convertSecTo_H_M_S(walltimeSecs) << endl;
}
else
{
}
else
{
- if (edt > 0)
+ if (walltimeSecs > 0)
{
- tempOutputFile << "#OAR -l walltime=" << convertSecTo_H_M_S(edt) << endl;
+ tempOutputFile << "#OAR -l walltime=" << convertSecTo_H_M_S(walltimeSecs) << endl;
}
}
return remoteFileName;
}
- const string BatchManager_OAR::convertSecTo_H_M_S(const long seconds)
+ string BatchManager_OAR::convertSecTo_H_M_S(long seconds) const
{
int h(seconds / 3600);
int m((seconds % 3600) / 60);