raises (SALOME::SALOME_Exception);
void RunStudy(in long salomeStudyID,
- in SALOMEDS::ID entry)
+ in SALOMEDS::ID entry,
+ in boolean localOnly)
raises (SALOME::SALOME_Exception);
void ExportToCSV(in long salomeStudyID,
self.salome_runtime.addCatalog(self.session_catalog)
return self.salome_runtime
- def RunStudy(self, salomeStudyID, entry):
+ def RunStudy(self, salomeStudyID, entry, localOnly):
try:
self.beginService("PARAMETRIC.RunStudy")
proc.edAddChild(foreach)
distrib_container = proc.createContainer("DistribContainer")
- distrib_container.setProperty("hostname", "localhost")
+ if localOnly:
+ distrib_container.setProperty("hostname", "localhost")
if param_study.solver_code_type == ParametricStudy.SALOME_COMPONENT:
solver_code = param_study.salome_component_name
ed = ParametricStudyEditor()
entry = salome.sg.getSelected(0)
engine = ed.find_or_create_engine()
- engine.RunStudy(ed.study_id, entry)
+ engine.RunStudy(ed.study_id, entry, True)
qapp.restoreOverrideCursor()
except SALOME.SALOME_Exception, exc:
qapp.restoreOverrideCursor()
comp = scomp.GetObject()
# run parametric study
-comp.RunStudy(study._get_StudyId(), "%(param_entry)s")
+comp.RunStudy(study._get_StudyId(), "%(param_entry)s", False)
# save study
salome.myStudyManager.SaveAs("%(output_study)s", study, False)