Salome HOME
add boolean in importDumpStateFile return function
authorsecher <secher>
Thu, 27 Jan 2011 10:43:52 +0000 (10:43 +0000)
committersecher <secher>
Thu, 27 Jan 2011 10:43:52 +0000 (10:43 +0000)
src/Core/Batch_BatchManager_eClient.cxx
src/Core/Batch_BatchManager_eClient.hxx

index b4344717cd280c3d5342875db1492ea3339d052e..a96d8a742f8efdbdeeafc853f80e84b6b132be75 100644 (file)
@@ -188,7 +188,7 @@ namespace Batch {
 
   }
 
-  void BatchManager_eClient::importDumpStateFile( const Job & job, const string directory )
+  bool BatchManager_eClient::importDumpStateFile( const Job & job, const string directory )
   {
     Parametre params = job.getParametre();
 
@@ -202,6 +202,7 @@ namespace Batch {
       cerr << mess << endl;
     }
 
+    bool ret = true;
     status = _protocol.copyFile(string(params[TMPDIR]) + string("/dumpState*.xml"), _hostname, _username,
                                 directory, "", "");
     if (status) {
@@ -212,7 +213,9 @@ namespace Batch {
       status_str << status;
       mess += status_str.str();
       cerr << mess << endl;
+      ret = false;
     }
+    return ret;
   }
 
   MpiImpl *BatchManager_eClient::FactoryMpiImpl(string mpiImpl)
index 55f299acd7e435b2fca560dc55e02fd896eee2d5..3c6e49431de12782e7887cf8150c91be925c039d 100644 (file)
@@ -53,7 +53,7 @@ namespace Batch {
                          CommunicationProtocolType protocolType = SSH, const char* mpiImpl="mpich1");
     virtual ~BatchManager_eClient();
     void importOutputFiles( const Job & job, const std::string directory );
-    void importDumpStateFile( const Job & job, const std::string directory );
+    bool importDumpStateFile( const Job & job, const std::string directory );
 
   protected:
     const CommunicationProtocol & _protocol; // protocol to access _hostname