]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Use new SALOME launch commands in Launcher service
authorRenaud Barate <renaud.barate@edf.fr>
Fri, 9 Jan 2015 09:37:12 +0000 (10:37 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 17 Mar 2015 15:06:28 +0000 (16:06 +0100)
src/Launcher/Launcher_Job_PythonSALOME.cxx
src/Launcher/Launcher_Job_SALOME.cxx
src/Launcher/Launcher_Job_YACSFile.cxx

index 4b0f6cb2ef3d4301747deff54a5089e4ce2c0243..da64993d1c7f814679e444c835d85fac03277c46 100644 (file)
@@ -26,7 +26,7 @@ Launcher::Job_PythonSALOME::Job_PythonSALOME() {_job_type = "python_salome";}
 
 Launcher::Job_PythonSALOME::~Job_PythonSALOME() {}
 
-void 
+void
 Launcher::Job_PythonSALOME::setJobFile(const std::string & job_file)
 {
   Launcher::Job::setJobFile(job_file);
index c3b79b3f5d611f482072474a2a7f01814e618b4c..caaccead7e9345faf6944db97aef7b01367daf82 100644 (file)
@@ -35,7 +35,7 @@ Launcher::Job_SALOME::Job_SALOME() {}
 
 Launcher::Job_SALOME::~Job_SALOME() {}
 
-void 
+void
 Launcher::Job_SALOME::setResourceDefinition(const ParserResourcesType & resource_definition)
 {
   // Check resource_definition
@@ -58,7 +58,7 @@ Launcher::Job_SALOME::update_job()
 }
 
 #ifdef WITH_LIBBATCH
-std::string 
+std::string
 Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
 {
   // parameters
@@ -66,13 +66,13 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
 
   std::string launch_script = Kernel_Utils::GetTmpDir() + "runSalome_" + _job_file_name + "_" + _launch_date + ".sh";
   std::ofstream launch_script_stream;
-  launch_script_stream.open(launch_script.c_str(), 
+  launch_script_stream.open(launch_script.c_str(),
                             std::ofstream::out
-#ifdef WIN32           
+#ifdef WIN32
  | std::ofstream::binary   //rnv: to avoid CL+RF end of line on windows
 #endif
                            );
-   
+
   // Begin of script
   launch_script_stream << "#!/bin/sh -f" << std::endl;
   launch_script_stream << "cd " << work_directory << std::endl;
@@ -148,4 +148,3 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
   return launch_script;
 }
 #endif
-
index b1bda42c54dfce7cb7ade2302b488c414c809f77..7462e8b0c71561da729a43c9d0ca3018a32c34ca 100644 (file)
@@ -23,7 +23,7 @@
 #include <sstream>
 
 
-Launcher::Job_YACSFile::Job_YACSFile() 
+Launcher::Job_YACSFile::Job_YACSFile()
 {
   _job_type = "yacs_file";
   _dumpState = -1;
@@ -31,7 +31,7 @@ Launcher::Job_YACSFile::Job_YACSFile()
 
 Launcher::Job_YACSFile::~Job_YACSFile() {}
 
-void 
+void
 Launcher::Job_YACSFile::setJobFile(const std::string & job_file)
 {
   Launcher::Job::setJobFile(job_file);