subroutine utlo02 ( motcle, option, ulsort, langue, codret ) c ______________________________________________________________________ c c H O M A R D c c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D c c Version originale enregistree le 18 juin 1996 sous le numero 96036 c aupres des huissiers de justice Simart et Lavoir a Clamart c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014 c aupres des huissiers de justice c Lavoir, Silinski & Cherqui-Abrahmi a Clamart c c HOMARD est une marque deposee d'Electricite de France c c Copyright EDF 1996 c Copyright EDF 1998 c Copyright EDF 2002 c Copyright EDF 2020 c ______________________________________________________________________ c c UTilitaire : Lectures des Options - 02 c -- - - -- c ______________________________________________________________________ c c but : decoder le texte relatif au type de conformite c ______________________________________________________________________ c . . . . . c . nom . e/s . taille . description . c .____________________________________________________________________. c . motcle . e . char*8 . mot-cle a decoder . c . option . s . 1 . 0 : conforme (defaut) . c . . . . 1 : non-conforme avec au minimum 2 aretes . c . . . . non decoupees en 2 . c . . . . 2 : non-conforme avec 1 seul noeud . c . . . . pendant par arete . c . . . . 3 : non-conforme fidele a l'indicateur . c . . . . -1 : conforme, avec des boites pour les . c . . . . quadrangles, hexaedres et pentaedres . c . . . . -2 : non-conforme avec au maximum 1 arete . c . . . . decoupee en 2 (boite pour les . c . . . . quadrangles, hexaedres et pentaedres . c . ulsort . e . 1 . numero d'unite logique de la liste standard. c . langue . e . 1 . langue des messages . c . . . . 1 : francais, 2 : anglais . c . codret . es . 1 . code de retour des modules . c . . . . 0 : pas de probleme . c . . . . 6 : impossible de decoder les options . c ______________________________________________________________________ c c==== c 0. declarations et dimensionnement c==== c c 0.1. ==> generalites c implicit none save c character*6 nompro parameter ( nompro = 'UTLO02' ) c #include "nblang.h" c c 0.2. ==> communs c #include "envex1.h" c c 0.3. ==> arguments c character*8 motcle c integer option c integer ulsort, langue, codret c c 0.4. ==> variables locales c integer iaux integer codre0 integer loptio integer nbrmin, nbrmax c character*200 noptio c integer nbmess parameter ( nbmess = 15 ) character*80 texte(nblang,nbmess) c c 0.5. ==> initialisations c ______________________________________________________________________ c c==== c 1. messages c==== c c 1.1. ==> tout va bien c codret = 0 c c 1.2. ==> les messages c #include "impr01.h" c #ifdef _DEBUG_HOMARD_ write (ulsort,texte(langue,1)) 'Entree', nompro call dmflsh (iaux) #endif c #include "utlo00.h" #include "utlo02.h" c nbrmin = 0 nbrmax = 1 c c 1.3. ==> par defaut : conforme c option = 0 c c==== c 2. options textuelles c==== c c 2.1. ==> recherche du texte associe au mot-cle c code de retour de utfino : c 0 : pas de probleme c 1 : la configuration est perdue c 2 : pas de nom dans la base c remarque : on recupere le texte en majuscule c iaux = 1 #ifdef _DEBUG_HOMARD_ write (ulsort,texte(langue,3)) 'UTFIN2', nompro #endif call utfin2 ( motcle, iaux, noptio, loptio, > nbrmin, nbrmax, > ulsort, langue, codre0) c c 2.2. ==> decodage de l'option c if ( codre0.eq.0 ) then c #include "utlo03.h" c if ( loptio.eq.8 ) then c if ( noptio(1:loptio).eq.'CONFORME' ) then option = 0 else codre0 = 5 endif c elseif ( loptio.eq.9 ) then c if ( noptio(1:loptio).eq.'CONFORMAL' ) then option = 0 else codre0 = 5 endif c elseif ( loptio.eq.12 ) then c c 123456789012 if ( noptio(1:loptio).eq.'NON_CONFORME' .or. > noptio(1:loptio).eq.'NON-CONFORME' ) then option = 1 else codre0 = 5 endif c elseif ( loptio.eq.13 ) then c c 1234567890123 if ( noptio(1:loptio).eq.'HANGING_NODES' .or. > noptio(1:loptio).eq.'HANGING-NODES' ) then option = 1 c else codre0 = 5 endif c elseif ( loptio.eq.15 ) then c if ( noptio(1:loptio).eq.'CONFORME_BOITES' .or. > noptio(1:loptio).eq.'CONFORME-BOITES' ) then option = -1 elseif ( noptio(1:loptio).eq.'CONFORMAL_BOXES' .or. > noptio(1:loptio).eq.'CONFORMAL-BOXES' ) then option = -1 else codre0 = 5 endif c elseif ( loptio.eq.20 ) then c c 12345678901234567890 if ( noptio(1:loptio).eq.'NON_CONFORME_1_ARETE' .or. > noptio(1:loptio).eq.'NON-CONFORME_1_ARETE' .or. > noptio(1:loptio).eq.'NON_CONFORME-1_ARETE' .or. > noptio(1:loptio).eq.'NON-CONFORME-1_ARETE' .or. > noptio(1:loptio).eq.'NON_CONFORME_1-ARETE' .or. > noptio(1:loptio).eq.'NON-CONFORME_1-ARETE' .or. > noptio(1:loptio).eq.'NON_CONFORME-1-ARETE' .or. > noptio(1:loptio).eq.'NON-CONFORME-1-ARETE' ) then option = -2 c elseif ( noptio(1:loptio).eq.'HANGING_NODES_1_EDGE' .or. > noptio(1:loptio).eq.'HANGING-NODES_1_EDGE' .or. > noptio(1:loptio).eq.'HANGING_NODES-1_EDGE' .or. > noptio(1:loptio).eq.'HANGING-NODES-1_EDGE' .or. > noptio(1:loptio).eq.'HANGING_NODES_1-EDGE' .or. > noptio(1:loptio).eq.'HANGING-NODES_1-EDGE' .or. > noptio(1:loptio).eq.'HANGING_NODES-1-EDGE' .or. > noptio(1:loptio).eq.'HANGING-NODES-1-EDGE' ) then option = -2 c elseif ( noptio(1:loptio).eq.'NON_CONFORME_1_NOEUD' .or. > noptio(1:loptio).eq.'NON-CONFORME_1_NOEUD' .or. > noptio(1:loptio).eq.'NON_CONFORME-1_NOEUD' .or. > noptio(1:loptio).eq.'NON-CONFORME-1_NOEUD' .or. > noptio(1:loptio).eq.'NON_CONFORME_1-NOEUD' .or. > noptio(1:loptio).eq.'NON-CONFORME_1-NOEUD' .or. > noptio(1:loptio).eq.'NON_CONFORME-1-NOEUD' .or. > noptio(1:loptio).eq.'NON-CONFORME-1-NOEUD' ) then option = 2 c elseif ( noptio(1:loptio).eq.'HANGING_NODES_1_NODE' .or. > noptio(1:loptio).eq.'HANGING-NODES_1_NODE' .or. > noptio(1:loptio).eq.'HANGING_NODES-1_NODE' .or. > noptio(1:loptio).eq.'HANGING-NODES-1_NODE' .or. > noptio(1:loptio).eq.'HANGING_NODES_1-NODE' .or. > noptio(1:loptio).eq.'HANGING-NODES_1-NODE' .or. > noptio(1:loptio).eq.'HANGING_NODES-1-NODE' .or. > noptio(1:loptio).eq.'HANGING-NODES-1-NODE' ) then option = 2 c else codre0 = 5 endif c elseif ( loptio.eq.23 ) then c if ( noptio(1:loptio).eq.'NON_CONFORME_INDICATEUR' .or. > noptio(1:loptio).eq.'NON-CONFORME_INDICATEUR' .or. > noptio(1:loptio).eq.'NON_CONFORME-INDICATEUR' .or. > noptio(1:loptio).eq.'NON-CONFORME-INDICATEUR' ) then option = 3 c elseif ( noptio(1:loptio).eq.'HANGING_NODES_INDICATOR' .or. > noptio(1:loptio).eq.'HANGING-NODES_INDICATOR' .or. > noptio(1:loptio).eq.'HANGING_NODES-INDICATOR' .or. > noptio(1:loptio).eq.'HANGING-NODES-INDICATOR' ) then option = 3 c else codre0 = 5 endif c else codre0 = 5 endif c elseif ( codre0.eq.2 ) then codre0 = 0 c else codre0 = 6 c endif c #include "utlo01.h" c c==== c 3. la fin c==== c if ( codret.ne.0 ) then c #include "envex2.h" c write (ulsort,texte(langue,1)) 'Sortie', nompro write (ulsort,texte(langue,2)) codret c endif c #ifdef _DEBUG_HOMARD_ write (ulsort,texte(langue,1)) 'Sortie', nompro call dmflsh (iaux) #endif c end