From: Ovidiu Mircescu Date: Mon, 2 Dec 2019 14:00:16 +0000 (+0100) Subject: Make exportInputFiles public. X-Git-Tag: V2_4_3rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22377b724f30dffd5b4cca648703e78e7aad06ae;p=tools%2Flibbatch.git Make exportInputFiles public. --- diff --git a/src/COORM/BatchManager_COORM.hxx b/src/COORM/BatchManager_COORM.hxx index 87abb24..31ccf63 100644 --- a/src/COORM/BatchManager_COORM.hxx +++ b/src/COORM/BatchManager_COORM.hxx @@ -54,9 +54,9 @@ namespace Batch // Modifie un job en file d'attente virtual void setEnvironnement(const JobId & jobid, const Environnement & env) { return alterJob(jobid, env); } + virtual void exportInputFiles(const Job & job); protected: std::string buildBatchScript(const Job & job); - void exportInputFiles(const Job & job); #ifdef SWIG public: diff --git a/src/Core/BatchManager.hxx b/src/Core/BatchManager.hxx index 1746c9c..79d2fd8 100644 --- a/src/Core/BatchManager.hxx +++ b/src/Core/BatchManager.hxx @@ -83,6 +83,7 @@ namespace Batch { // Get the underlying communication protocol const CommunicationProtocol & getProtocol() const; + virtual void exportInputFiles(const Job & job); protected: std::string _hostname; // serveur ou tourne le BatchManager @@ -94,7 +95,6 @@ namespace Batch { MpiImpl *_mpiImpl; // Mpi implementation to launch executable in batch script MpiImpl* FactoryMpiImpl(std::string mpiImpl); - virtual void exportInputFiles(const Job & job); // Preprocessing done on the frontal using "PREPROCESS" parameter as a script. // May throw exceptions in case of failure. diff --git a/src/Vishnu/BatchManager_Vishnu.hxx b/src/Vishnu/BatchManager_Vishnu.hxx index 767ce4b..b332ecc 100644 --- a/src/Vishnu/BatchManager_Vishnu.hxx +++ b/src/Vishnu/BatchManager_Vishnu.hxx @@ -55,11 +55,11 @@ namespace Batch { virtual void deleteJob(const JobId & jobid); virtual JobInfo queryJob(const JobId & jobid); virtual void importOutputFiles(const Job & job, const std::string directory); + virtual void exportInputFiles(const Job & job); protected: std::string buildCommandFile(const Job & job); - void exportInputFiles(const Job & job); };