),
),
)
-# __________________________________________________________________
-def prepareBlocInitialisation(condition,ajoutPossible=None,particle=False):
-# __________________________________________________________________
+# ___________________________________________________________________________
+def prepareBlocInitialisation( condition, ajoutPossible=None, particle=False):
+# ___________________________________________________________________________
monIntoType = ['ByValue', 'ByFile', 'ByInteraction']
- dicoParticle = {}
- if particle : dicoParticle['ParticleIdentifier']=SIMP(statut='o', typ = userParticle)
if ajoutPossible != None :
monIntoType.append(ajoutPossible)
return BLOC(condition = condition,
Initialisation = FACT(statut ='o',
- **dicoParticle,
InitialisationType = SIMP(statut='o', into = monIntoType, typ ='TXM', defaut='ByValue'),
blocByFile = creeBlocPourLesFichiers('InitialisationType == "ByFile"', '', ListeFormats = listeFormatGenerique, FieldName='FieldName'),
blocByInteraction = BLOC(condition = 'InitialisationType == "ByInteraction"',
def prepareBlocInitialisationParticle(condition, termeSource=True):
monIntoType = ['ByValue', 'ByFile', 'ByInteraction','Not needed' ]
- dicoTermeSource = {}
- if termeSource :
- dicoTermeSource['SourceTerm'] = SIMP(typ=bool, statut='o', defaut=False),
- dicoTermeSource['blocSourceTerm'] = prepareTermeSourceDynVar('SourceTerm==True')
-
if termeSource :
return BLOC(condition = condition,
Initialisation = FACT(statut ='o',
return BLOC(condition = condition,
Initialisation = FACT(statut ='o',
InitialisationType = SIMP(statut='o', into =monIntoType, typ ='TXM', defaut='ByValue'),
- blocNotNeeded = BLOC(condition = 'InitialisationType == "Not needed"',
+ blocNotNeeded = BLOC(condition = 'InitialisationType != "Not needed"',
ParticleIdentifier=SIMP(statut='o', typ = userParticle),
),
blocByFile = creeBlocPourLesFichiers('InitialisationType == "ByFile"', '', ListeFormats = listeFormatGenerique, FieldName='FieldName'),