1 subroutine utlo08 ( motcle, typemc, ival, dval, option,
2 > ulsort, langue, codret )
3 c ______________________________________________________________________
7 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c Version originale enregistree le 18 juin 1996 sous le numero 96036
10 c aupres des huissiers de justice Simart et Lavoir a Clamart
11 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
12 c aupres des huissiers de justice
13 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
15 c HOMARD est une marque deposee d'Electricite de France
21 c ______________________________________________________________________
23 c UTilitaire : Lectures des Options - 08
25 c ______________________________________________________________________
27 c but : decoder les informations temporelles pour l'indicateur d'erreur
28 c ______________________________________________________________________
30 c . nom . e/s . taille . description .
31 c .____________________________________________________________________.
32 c . motcle . e . char*8 . mot-cle a decoder .
33 c . typemc . e . 1 . 1 CCNumPTI : entier .
34 c . . . . 2 CCNumOrI : entier .
35 c . . . . 3 CCInstaI : reel .
36 c . ival . s . 1 . valeur entiere decodee .
37 c . dval . s . 1 . valeur reelle decodee .
38 c . option . s . 1 . type d'option sur le temps : .
39 c . . . . 0, si aucune valeur n'a ete fournie .
40 c . . . . 1, si une valeur est fournie .
41 c . . . . 2, si on prend le dernier instant .
42 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
43 c . langue . e . 1 . langue des messages .
44 c . . . . 1 : francais, 2 : anglais .
45 c . codret . es . 1 . code de retour des modules .
46 c . . . . 0 : pas de probleme .
47 c . . . . 6 : impossible de decoder les options .
48 c ______________________________________________________________________
51 c 0. declarations et dimensionnement
54 c 0.1. ==> generalites
60 parameter ( nompro = 'UTLO08' )
74 integer typemc, ival, option
77 integer ulsort, langue, codret
79 c 0.4. ==> variables locales
84 integer nbrmin, nbrmax
89 parameter ( nbmess = 15 )
90 character*80 texte(nblang,nbmess)
92 c 0.5. ==> initialisations
93 c ______________________________________________________________________
99 c 1.1. ==> tout va bien
103 c 1.2. ==> les messages
107 #ifdef _DEBUG_HOMARD_
108 write (ulsort,texte(langue,1)) 'Entree', nompro
128 c 2.1. ==> recherche du texte associe au mot-cle
129 c code de retour de utfino :
130 c 0 : pas de probleme
131 c 1 : la configuration est perdue
132 c 2 : pas de nom dans la base
133 c remarque : on recupere le texte en majuscule
136 #ifdef _DEBUG_HOMARD_
137 write (ulsort,texte(langue,3)) 'UTFIN2', nompro
139 call utfin2 ( motcle, iaux, noptio, loptio,
141 > ulsort, langue, codre0)
143 c 2.2. ==> decodage de l'option
144 c 2.2.1. ==> un texte eventuel, sauf pour le numero d'ordre
146 if ( codre0.eq.0 ) then
152 if ( loptio.eq.4 ) then
154 if ( noptio(1:loptio).eq.'LAST' ) then
155 if ( typemc.ne.2 ) then
160 elseif ( loptio.eq.7 ) then
162 if ( noptio(1:loptio).eq.'DERNIER' ) then
163 if ( typemc.ne.2 ) then
169 elseif ( codre0.eq.2 ) then
179 c 2.2.2. ==> des valeurs
181 if ( codre0.eq.0 ) then
183 if ( option.eq.1 ) then
185 c 2.3.2.1 ==> des valeurs entieres
187 if ( typemc.le.2 ) then
189 #ifdef _DEBUG_HOMARD_
190 write (ulsort,texte(langue,3)) 'UTMCEN', nompro
192 call utmcen ( motcle, ival, 1,
193 > ulsort, langue, codre0 )
196 c 2.3.2.2 ==> des valeurs reelles
200 #ifdef _DEBUG_HOMARD_
201 write (ulsort,texte(langue,3)) 'UTMCRE', nompro
203 call utmcre ( motcle, dval,
204 > ulsort, langue, codre0 )
213 #ifdef _DEBUG_HOMARD_
214 if ( codret.eq.0 ) then
216 write (ulsort,*) 'motcle =', motcle
217 write (ulsort,*) 'option =', option
218 if ( typemc.le.2 ) then
219 if ( option.eq.1 ) then
220 texte(1,10) = '(''==> valeurs i ='',i12)'
221 texte(2,10) = '(''==> values i ='',i12)'
222 write (ulsort,texte(langue,10)) ival
225 if ( option.eq.1 ) then
226 texte(1,10) = '(''==> valeurs d ='',g18.5)'
227 texte(2,10) = '(''==> values d ='',g18.5)'
228 write (ulsort,texte(langue,10)) dval
240 if ( codret.ne.0 ) then
244 write (ulsort,texte(langue,1)) 'Sortie', nompro
245 write (ulsort,texte(langue,2)) codret
249 #ifdef _DEBUG_HOMARD_
250 write (ulsort,texte(langue,1)) 'Sortie', nompro