From: pascale.noyret Date: Tue, 22 Sep 2020 13:07:18 +0000 (+0200) Subject: ajout cata de test X-Git-Tag: MDM_V0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c8cb1f74fee0bc6fe62e1b565de27f4a24d5d6f;p=tools%2Feficas.git ajout cata de test --- diff --git a/Tests/MappingAccasXsd/Ambiguite/cataBlocsAmbigusConsecutifs.py b/Tests/MappingAccasXsd/Ambiguite/cataBlocsAmbigusConsecutifs.py new file mode 100644 index 00000000..e330e2aa --- /dev/null +++ b/Tests/MappingAccasXsd/Ambiguite/cataBlocsAmbigusConsecutifs.py @@ -0,0 +1,66 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +import os, re +import Accas +from Accas import * +monFichier=os.path.abspath(__file__) + +JdC = JDC_CATA ( + code='Essai' + ) +VERSION_CATALOGUE='V_0' + +Interactions = PROC(nom='Interactions', + origine = SIMP(typ='I', statut='o'), + monBlocA1 = BLOC( condition = 'origine == 1' , + termeLE = SIMP(typ='TXM', statut='o', into = ['Fields','Particles']), + ), + monBlocA2 = BLOC( condition = 'origine == 2' , + termeLE = SIMP(typ='TXM', statut='o', into = ['Particles2','Fields2']), + ), + monBlocB1 = BLOC( condition = 'origine == 3' , + Format = SIMP(typ='TXM', statut='o', into = ( "Saturne", "Fluent" ),), + ), + monBlocB2 = BLOC( condition = 'origine == 4' , + Format = SIMP(typ='TXM', statut='o', into = ( "Saturne4", "Fluent4", "Use converter" ),), + blocConversion = BLOC (condition = 'Format == "Use converter"', + converter = SIMP(typ='TXM', statut='o', into = ['Saturne', 'OpenFOAM']), + ), + ), +) + +Interactions2 = PROC(nom='Interactions2', + origine = SIMP(typ='I', statut='o'), + monBlocA1 = BLOC( condition = 'origine == 1' , + termeLE = SIMP(typ='TXM', statut='o', into = ['Fields','Particles']), + ), + monBlocA2 = BLOC( condition = 'origine == 2' , + termeLE = SIMP(typ='TXM', statut='o', into = ['Particles2','Fields2']), + ), + monBlocB1 = BLOC( condition = 'origine == 3' , + Format = SIMP(typ='TXM', statut='o', into = ( "Saturne", "Fluent" ),), + ), + monBlocB2 = BLOC( condition = 'origine == 4' , + Format = SIMP(typ='TXM', statut='o', into = ( "Saturne4", "Fluent4", "Use converter" ),), + blocConversion = BLOC (condition = 'Format == "Use converter"', + converter = SIMP(typ='TXM', statut='o', into = ['Saturne', 'OpenFOAM']), + ), + ), +)