1 subroutine utlo00 ( motcle, option, ulsort, langue, codret )
2 c ______________________________________________________________________
6 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
8 c Version originale enregistree le 18 juin 1996 sous le numero 96036
9 c aupres des huissiers de justice Simart et Lavoir a Clamart
10 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
11 c aupres des huissiers de justice
12 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
14 c HOMARD est une marque deposee d'Electricite de France
20 c ______________________________________________________________________
22 c UTilitaire : Lectures des Options - 00
24 c ______________________________________________________________________
26 c but : transformer les choix de type oui/non en entier 1/0
27 c ______________________________________________________________________
29 c . nom . e/s . taille . description .
30 c .____________________________________________________________________.
31 c . motcle . e . char*8 . mot-cle a decoder .
32 c . option . s . 1 . 0 : non, 1 : oui .
33 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
34 c . langue . e . 1 . langue des messages .
35 c . . . . 1 : francais, 2 : anglais .
36 c . codret . es . 1 . code de retour des modules .
37 c . . . . 0 : pas de probleme .
38 c . . . . 6 : impossible de decoder les options .
39 c ______________________________________________________________________
42 c 0. declarations et dimensionnement
45 c 0.1. ==> generalites
51 parameter ( nompro = 'UTLO00' )
65 integer ulsort, langue, codret
67 c 0.4. ==> variables locales
72 integer nbrmin, nbrmax
77 parameter ( nbmess = 15 )
78 character*80 texte(nblang,nbmess)
80 c 0.5. ==> initialisations
81 c ______________________________________________________________________
87 c 1.1. ==> tout va bien
91 c 1.2. ==> les messages
96 write (ulsort,texte(langue,1)) 'Entree', nompro
107 c 2. options textuelles
110 c 2.1. ==> recherche du texte associe au mot-cle
111 c code de retour de utfino :
112 c 0 : pas de probleme
113 c 1 : la configuration est perdue
114 c 2 : pas de nom dans la base
115 c remarque : on recupere le texte en majuscule
118 #ifdef _DEBUG_HOMARD_
119 write (ulsort,texte(langue,3)) 'UTFIN2', nompro
121 call utfin2 ( motcle, iaux, noptio, loptio,
123 > ulsort, langue, codre0 )
125 c 2.2. ==> decodage de l'option
127 if ( codre0.eq.0 ) then
131 if ( loptio.eq.2 ) then
133 if ( noptio(1:loptio).eq.'NO' ) then
140 elseif ( loptio.eq.3 ) then
142 if ( noptio(1:loptio).eq.'NON' ) then
145 elseif ( noptio(1:loptio).eq.'OUI' .or.
146 > noptio(1:loptio).eq.'YES' ) then
157 elseif ( codre0.eq.2 ) then
171 if ( codret.ne.0 ) then
175 write (ulsort,texte(langue,1)) 'Sortie', nompro
176 write (ulsort,texte(langue,2)) codret
180 #ifdef _DEBUG_HOMARD_
181 write (ulsort,texte(langue,1)) 'Sortie', nompro