From: barate Date: Thu, 22 Apr 2010 15:25:19 +0000 (+0000) Subject: Fixed bug in BatchManager_ePBS: the job identifier is now "number.server_name" instea... X-Git-Tag: V1_1_0rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bea3d09316e59a40cf0563871cbacf9fbf4d4d98;p=tools%2Flibbatch.git Fixed bug in BatchManager_ePBS: the job identifier is now "number.server_name" instead of just "number". It fixes a problem on cluster clamart2 where the default server name is not the one where the jobs are submitted. --- diff --git a/src/PBS/Batch_BatchManager_ePBS.cxx b/src/PBS/Batch_BatchManager_ePBS.cxx index fd01bc0..3379bca 100644 --- a/src/PBS/Batch_BatchManager_ePBS.cxx +++ b/src/PBS/Batch_BatchManager_ePBS.cxx @@ -117,14 +117,7 @@ namespace Batch { if (sline.size() == 0) throw EmulationException("Error in the submission of the job on the remote host"); - size_t pos = sline.find("."); - string strjob; - if(pos == string::npos) - strjob = sline; - else - strjob = sline.substr(0,pos); - - JobId id(this, strjob); + JobId id(this, sline); return id; }