1 subroutine utlo09 ( 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 - 09
24 c ______________________________________________________________________
26 c but : decoder le texte relatif au mode de fonctionnement de
27 c l'ecriture des fichiers au format HOMARD
28 c ______________________________________________________________________
30 c . nom . e/s . taille . description .
31 c .____________________________________________________________________.
32 c . motcle . e . char*8 . mot-cle a decoder .
33 c . option . s . 1 . produit de : .
34 c . . . . 2 : maillage n .
35 c . . . . 3 : maillage n+1 .
36 c . . . . >0 : on ecrit les frontieres .
37 c . . . . <0 : on n'ecrit pas les frontieres .
38 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
39 c . langue . e . 1 . langue des messages .
40 c . . . . 1 : francais, 2 : anglais .
41 c . codret . es . 1 . code de retour des modules .
42 c . . . . 0 : pas de probleme .
43 c . . . . 6 : impossible de decoder les options .
44 c ______________________________________________________________________
47 c 0. declarations et dimensionnement
50 c 0.1. ==> generalites
56 parameter ( nompro = 'UTLO09' )
70 integer ulsort, langue, codret
72 c 0.4. ==> variables locales
77 integer nbrmin, nbrmax
82 parameter ( nbmess = 15 )
83 character*80 texte(nblang,nbmess)
85 c 0.5. ==> initialisations
86 c ______________________________________________________________________
92 c 1.1. ==> tout va bien
96 c 1.2. ==> les messages
100 #ifdef _DEBUG_HOMARD_
101 write (ulsort,texte(langue,1)) 'Entree', nompro
113 c 1.3. ==> par defaut, ecriture apres adaptation, sans les frontieres
118 c 2. options textuelles
121 c 2.1. ==> recherche du texte associe au mot-cle
122 c code de retour de utfino :
123 c 0 : pas de probleme
124 c 1 : la configuration est perdue
125 c 2 : pas de nom dans la base
126 c remarque : on recupere le texte en majuscule
129 #ifdef _DEBUG_HOMARD_
130 write (ulsort,texte(langue,3)) 'UTFIN2', nompro
132 call utfin2 ( motcle, iaux, noptio, loptio,
134 > ulsort, langue, codre0)
136 c 2.2. ==> decodage de l'option
138 if ( codre0.eq.0 ) then
142 if ( loptio.eq.1 ) then
144 if ( noptio(1:loptio).eq.'N' ) then
150 elseif ( loptio.eq.3 ) then
152 if ( noptio(1:loptio).eq.'NP1' ) then
158 elseif ( loptio.eq.4 ) then
160 if ( noptio(1:loptio).eq.'TOUT' ) then
166 elseif ( loptio.eq.16 ) then
168 if ( noptio(1:loptio).eq.'N_SANS_FRONTIERE' ) then
174 elseif ( loptio.eq.18 ) then
176 if ( noptio(1:loptio).eq.'NP1_SANS_FRONTIERE' ) then
182 elseif ( loptio.eq.19 ) then
183 c 1234567890123456789
184 if ( noptio(1:loptio).eq.'TOUT_SANS_FRONTIERE' ) then
194 elseif ( codre0.eq.2 ) then
205 #ifdef _DEBUG_HOMARD_
206 write (ulsort,90002) 'option', option
213 if ( codret.ne.0 ) then
217 write (ulsort,texte(langue,1)) 'Sortie', nompro
218 write (ulsort,texte(langue,2)) codret
222 #ifdef _DEBUG_HOMARD_
223 write (ulsort,texte(langue,1)) 'Sortie', nompro