From: barate Date: Fri, 25 Oct 2013 12:53:22 +0000 (+0000) Subject: Properly initialize unused parameters in resource part for new jobs X-Git-Tag: V7_3_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3dfd59f1130b650c294f44ddf3b1c3937999e2a7;p=modules%2Fjobmanager.git Properly initialize unused parameters in resource part for new jobs --- diff --git a/src/engine/BL_SALOMEServices.cxx b/src/engine/BL_SALOMEServices.cxx index 2ec486c..081e237 100644 --- a/src/engine/BL_SALOMEServices.cxx +++ b/src/engine/BL_SALOMEServices.cxx @@ -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());