]> SALOME platform Git repositories - modules/jobmanager.git/commitdiff
Salome HOME
Properly initialize unused parameters in resource part for new jobs
authorbarate <barate>
Fri, 25 Oct 2013 12:53:22 +0000 (12:53 +0000)
committerbarate <barate>
Fri, 25 Oct 2013 12:53:22 +0000 (12:53 +0000)
src/engine/BL_SALOMEServices.cxx

index 2ec486c21f226adedddf856884a8bfcc8b4f919a..081e2370a9f5de2136ca5dea4b60a98dacf1922b 100644 (file)
@@ -337,6 +337,11 @@ BL::SALOMEServices::create_job(BL::Job * job)
     throw Exception("Unknown memory requirement, unable to create job");
   }
 
+  // Unused parameters
+  job_parameters->resource_required.nb_node = -1;
+  job_parameters->resource_required.nb_proc_per_node = -1;
+  job_parameters->resource_required.cpu_clock = -1;
+
   // Parameters for COORM
   job_parameters->launcher_file = CORBA::string_dup(cpp_batch_params.launcher_file.c_str());
   job_parameters->launcher_args = CORBA::string_dup(cpp_batch_params.launcher_args.c_str());