From: barate Date: Wed, 28 Mar 2012 16:05:07 +0000 (+0000) Subject: Merge from BR_VISHNU X-Git-Tag: V6_5_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=edbe959803958bf7d5e1b4b280fb28901cf79a74;p=modules%2Fkernel.git Merge from BR_VISHNU --- diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index 919f2fcc0..46ee67b54 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -422,6 +422,9 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params) case ll: bmType = "eLL"; break; + case vishnu: + bmType = "eVISHNU"; + break; default: LAUNCHER_MESSAGE("Bad batch description of the resource: Batch = " << params.Batch); throw LauncherException("No batchmanager for that cluster - Bad batch description of the resource"); diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx index 73ac4ece0..4f40a9792 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx @@ -524,6 +524,8 @@ SALOME_ResourcesCatalog_Handler::ProcessMachine(xmlNodePtr machine_descr, Parser resource.Batch = slurm; else if (aBatch == "ll") resource.Batch = ll; + else if (aBatch == "vishnu") + resource.Batch = vishnu; else resource.Batch = none; } @@ -745,6 +747,9 @@ void SALOME_ResourcesCatalog_Handler::PrepareDocToXmlFile(xmlDocPtr theDoc) case ll: xmlNewProp(node, BAD_CAST test_batch, BAD_CAST "ll"); break; + case vishnu: + xmlNewProp(node, BAD_CAST test_batch, BAD_CAST "vishnu"); + break; default: xmlNewProp(node, BAD_CAST test_batch, BAD_CAST ""); } diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.cxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.cxx index 13583cd2c..62df85304 100644 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.cxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.cxx @@ -244,6 +244,8 @@ ParserResourcesType::PrintBatchType() const return "slurm"; else if (Batch == ll) return "ll"; + else if (Batch == vishnu) + return "vishnu"; else return "ssh"; } diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx index 1885a8e3c..bc164cd2e 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx @@ -45,7 +45,7 @@ enum AccessProtocolType {rsh, ssh, srun, pbsdsh, blaunch}; enum AccessModeType {interactive, batch}; -enum BatchType {none, pbs, lsf, sge, ssh_batch, ccc, ll, slurm}; +enum BatchType {none, pbs, lsf, sge, ssh_batch, ccc, ll, slurm, vishnu}; enum MpiImplType {nompi, lam, mpich1, mpich2, openmpi, slurmmpi, prun}; diff --git a/src/ResourcesManager/SALOME_ResourcesManager.cxx b/src/ResourcesManager/SALOME_ResourcesManager.cxx index 090b2d353..506501089 100644 --- a/src/ResourcesManager/SALOME_ResourcesManager.cxx +++ b/src/ResourcesManager/SALOME_ResourcesManager.cxx @@ -256,6 +256,8 @@ SALOME_ResourcesManager::GetResourceDefinition(const char * name) p_ptr->batch = "ssh"; else if( resource.Batch == ll ) p_ptr->batch = "ll"; + else if( resource.Batch == vishnu ) + p_ptr->batch = "vishnu"; return p_ptr; } @@ -293,6 +295,8 @@ SALOME_ResourcesManager::AddResource(const Engines::ResourceDefinition& new_reso resource.Batch = ssh_batch; else if (aBatch == "ll") resource.Batch = ll; + else if (aBatch == "vishnu") + resource.Batch = vishnu; else if (aBatch == "") resource.Batch = none; else {