]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[bos #35138][EDF] (2023-T1) Specialization of resources in KERNEL. JobParameters... kleontev/35138_specialization_resources_in_KERNEL 16/head
authorKonstantin Leontev <Konstantin.LEONTEV@opencascade.com>
Fri, 11 Aug 2023 10:42:35 +0000 (11:42 +0100)
committerKonstantin Leontev <Konstantin.LEONTEV@opencascade.com>
Fri, 11 Aug 2023 10:42:35 +0000 (11:42 +0100)
src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx

index 7aed80bbddbb10b74e32a76f1354c1d4787b293e..8364af2132d8c60840d6c4cb3b54f540ea754ed5 100644 (file)
@@ -451,9 +451,9 @@ CORBA::Long MeshJobManager_i::initialize(const MESHJOB::MeshJobFileList & meshJo
   //const char * resourceName = "nepal@nepal";
   const char * resourceName = _configMap[configId].resname;
   
-  Engines::ResourceDefinitionContainer* resourceDefinition;
+  Engines::ResourceDefinitionJob* resourceDefinition = nullptr;
   try {
-    resourceDefinition = _resourcesManager->GetResourceDefinitionContainer(resourceName);
+    resourceDefinition = _resourcesManager->GetResourceDefinitionJob(resourceName);
   }
   catch (const CORBA::SystemException& ex) {
     _lastErrorMessage = std::string("We can not access the resource ") + std::string(resourceName);
@@ -470,8 +470,8 @@ CORBA::Long MeshJobManager_i::initialize(const MESHJOB::MeshJobFileList & meshJo
   // CAUTION: the additional two following parameters MUST be
   // specified explicitly, because they are not provided by the
   // resource definition:
-  jobParameters->resource_required.mem_mb   = resourceDefinition->mem_mb;
-  jobParameters->resource_required.nb_proc  = resourceDefinition->nb_proc_per_node;
+  // jobParameters->resource_required.mem_mb   = resourceDefinition->mem_mb;
+  // jobParameters->resource_required.nb_proc  = resourceDefinition->nb_proc_per_node;
   // CAUTION: the parameter mem_mb specifies the maximum memory value
   // that could be allocated for executing the job. This takes into
   // account not only the data that could be loaded by the batch