Salome HOME
Homard executable
[modules/homard.git] / src / tool / Utilitaire / utlo10.F
1       subroutine utlo10 ( motcle, option, ulsort, langue, codret )
2 c ______________________________________________________________________
3 c
4 c                             H O M A R D
5 c
6 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
7 c
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
13 c
14 c    HOMARD est une marque deposee d'Electricite de France
15 c
16 c Copyright EDF 1996
17 c Copyright EDF 1998
18 c Copyright EDF 2002
19 c Copyright EDF 2020
20 c ______________________________________________________________________
21 c
22 c   UTilitaire : Lectures des Options - 10
23 c   --           -            -         --
24 c ______________________________________________________________________
25 c
26 c but : decoder le texte relatif aux informations complementaires
27 c ______________________________________________________________________
28 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    . option du mot-cle                          .
33 c .        .     .        . 1 :oui, 2 : non                            .
34 c . ulsort . e   .   1    . numero d'unite logique de la liste standard.
35 c . langue . e   .    1   . langue des messages                        .
36 c .        .     .        . 1 : francais, 2 : anglais                  .
37 c . codret . es  .    1   . code de retour des modules                 .
38 c .        .     .        . 0 : pas de probleme                        .
39 c .        .     .        . 6 : impossible de decoder les options      .
40 c ______________________________________________________________________
41 c
42 c====
43 c 0. declarations et dimensionnement
44 c====
45 c
46 c 0.1. ==> generalites
47 c
48       implicit none
49       save
50 c
51       character*6 nompro
52       parameter ( nompro = 'UTLO10' )
53 c
54 #include "nblang.h"
55 c
56 c 0.2. ==> communs
57 c
58 #include "envex1.h"
59 c
60 c 0.3. ==> arguments
61 c
62       character*8 motcle
63 c
64       integer option
65 c
66       integer ulsort, langue, codret
67 c
68 c 0.4. ==> variables locales
69 c
70       integer iaux
71       integer codre0
72       integer loptio
73       integer nbrmin, nbrmax
74 c
75       character*200 noptio
76 c
77       integer nbmess
78       parameter ( nbmess = 15 )
79       character*80 texte(nblang,nbmess)
80 c
81 c 0.5. ==> initialisations
82 c ______________________________________________________________________
83 c
84 c====
85 c 1. messages
86 c====
87 c
88       codret = 0
89 c
90 #include "impr01.h"
91 c
92 #ifdef _DEBUG_HOMARD_
93       write (ulsort,texte(langue,1)) 'Entree', nompro
94       call dmflsh (iaux)
95 #endif
96 c
97 #include "utlo00.h"
98 #include "utlo02.h"
99 c
100       nbrmin = 0
101       nbrmax = 1
102 c
103 c====
104 c 2. options textuelles
105 c====
106 c
107 c 2.1. ==> recherche du texte associe au mot-cle
108 c          code de retour de utfino :
109 c             0 : pas de probleme
110 c             1 : la configuration est perdue
111 c             2 : pas de nom dans la base
112 c     remarque : on recupere le texte en majuscule
113 c
114       iaux = 1
115 #ifdef _DEBUG_HOMARD_
116       write (ulsort,texte(langue,3)) 'UTFIN2', nompro
117 #endif
118       call utfin2 ( motcle, iaux, noptio, loptio,
119      >              nbrmin, nbrmax,
120      >              ulsort, langue, codre0)
121 c
122 c 2.2. ==> bilan
123 c
124       if ( codre0.eq.0 ) then
125         option = 1
126 c
127       elseif ( codre0.eq.2 ) then
128         codre0 = 0
129         option = 0
130 c
131       else
132         codre0 = 6
133 c
134       endif
135 c
136 #include "utlo01.h"
137 c
138 c====
139 c 3. la fin
140 c====
141 c
142       if ( codret.ne.0 ) then
143 c
144 #include "envex2.h"
145 c
146       write (ulsort,texte(langue,1)) 'Sortie', nompro
147       write (ulsort,texte(langue,2)) codret
148 c
149       endif
150 c
151 #ifdef _DEBUG_HOMARD_
152       write (ulsort,texte(langue,1)) 'Sortie', nompro
153       call dmflsh (iaux)
154 #endif
155 c
156       end