]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add an helper class for ResourceDefinition
authorribes <ribes>
Thu, 14 Apr 2011 08:00:46 +0000 (08:00 +0000)
committerribes <ribes>
Thu, 14 Apr 2011 08:00:46 +0000 (08:00 +0000)
src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py

index cb19f164affb365c24311ed8c3988a6314e545d7..2d3c5427dd4e1c398dee8058af090f7bd6627418 100644 (file)
@@ -68,3 +68,11 @@ class JobParameters (Engines.JobParameters):
     Engines.JobParameters.__init__(self, job_name, job_type, job_file, env_file, in_files, out_files,
                                          work_directory, local_directory, result_directory, maximum_duration,
                                          resource_required, queue, specific_parameters)
+
+class ResourceDefinition(Engines.ResourceDefinition):
+  def __init__(self, name="", hostname="", protocol="rsh", username="", applipath="", componentList=[],
+               mode="interactive", OS="", mem_mb=1, cpu_clock=1, nb_node=1, nb_proc_per_node=1,
+               batch="", mpiImpl="", iprotocol="rsh"):
+    Engines.ResourceDefinition.__init__(self, name, hostname, protocol, username, applipath, componentList,
+                               mode, OS, mem_mb, cpu_clock, nb_node, nb_proc_per_node, batch,
+                               mpiImpl, iprotocol)