From b85a5bb071547d8feb08cf4038ff0619894ec4a8 Mon Sep 17 00:00:00 2001 From: Eric Fayolle Date: Mon, 10 Oct 2022 17:47:22 +0200 Subject: [PATCH] Correction pour le multijob --- generator/generator_UQ.py | 2 +- generator/textePersalys.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generator/generator_UQ.py b/generator/generator_UQ.py index 506bae17..05903c23 100644 --- a/generator/generator_UQ.py +++ b/generator/generator_UQ.py @@ -518,7 +518,7 @@ class UQGenerator(PythonGenerator): inFiles = repr(inFiles) ) txtYacsJobParameters+=txtYacsJobClusterParameters - if ( self.MultiJobStudy != None): + if ( self.MultiJobStudy != None and self.MultiJobStudy == True): txtYacsJobParameters+= yacsJobClusterMultiJob self.txtScriptPersalys += mainPersalys.format( diff --git a/generator/textePersalys.py b/generator/textePersalys.py index 928d53ca..a1e4d63f 100644 --- a/generator/textePersalys.py +++ b/generator/textePersalys.py @@ -414,9 +414,9 @@ yacsJobClusterParameters=""" # Ici jobs seront crées dynamiquement pour lancer chaque évaluation # chaque job demandera la réservation de nprocs processus. yacsJobClusterMultiJob=""" -import pydefx -multiJobModel = pydefx.MultiJobStudy() # mode un job par évaluation -yacsPhysicalModel.setJobModel(multiJobModel) + import pydefx + multiJobModel = pydefx.MultiJobStudy() # mode un job par évaluation + yacsPhysicalModel.setJobModel(multiJobModel) """ # yacsJobParametersRef=""" -- 2.39.2