1 subroutine utindh ( typpro, 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 : INitialisation des Donnees de HOMARD
24 c ______________________________________________________________________
26 c . nom . e/s . taille . description .
27 c .____________________________________________________________________.
28 c . typpro . e . 1 . type de programme .
29 c . . . . 1 : homard complet .
30 c . . . . 2 : interface avant adaptation .
31 c . . . . 3 : adaptation .
32 c . . . . 4 : suivi de frontiere .
33 c . . . . 5 : interface apres adaptation .
34 c . . . . 6 : information .
35 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
36 c . langue . e . 1 . langue des messages .
37 c . . . . 1 : francais, 2 : anglais .
38 c . codret . es . 1 . code de retour des modules .
39 c . . . . 0 : pas de probleme .
40 c . . . . 2 : impossible d'allouer la tete .
41 c . . . . 4 : impossible d'allouer les objets simples.
42 c ______________________________________________________________________
45 c 0. declarations et dimensionnement
48 c 0.1. ==> generalites
54 parameter ( nompro = 'UTINDH' )
69 integer ulsort, langue, codret
71 c 0.4. ==> variables locales
74 integer codre1, codre2
81 parameter ( nbmess = 10 )
82 character*80 texte(nblang,nbmess)
84 c 0.5. ==> initialisations
85 c ______________________________________________________________________
91 c 1.1. ==> tout va bien
95 c 1.2. ==> les messages,
100 write (ulsort,texte(langue,1)) 'Entree', nompro
105 > '(''Impossible d''''allouer la tete de type DonnHOMA.'')'
106 texte(1,4) = '(''Impossible d''''allouer l''''objet :'')'
109 > '(''Head object of type DonnHOMA cannot be allocated.'')'
110 texte(2,4) = '(''This object cannot be allocated :'')'
116 c 2.1. ==> allocation de l'objet de tete
118 call gmalot ( nndoad, 'DonnHOMA', 0, iaux, codre0 )
120 if ( codre0.ne.0 ) then
124 c 2.2. ==> allocation des options entieres
126 if ( codret.eq.0 ) then
128 nomobj = nndoad//'.OptEnt'
130 call gmecat ( nndoad, 1, iaux, codre1 )
131 call gmaloj ( nomobj, ' ', iaux, adress, codre2 )
133 codre0 = min ( codre1, codre2 )
134 codret = max ( abs(codre0), codret,
137 if ( codret.ne.0 ) then
140 imem(adress) = langue
145 c 2.3. ==> allocation des options reelles
147 if ( codret.eq.0 ) then
149 nomobj = nndoad//'.OptRee'
151 call gmecat ( nndoad, 2, iaux, codre1 )
152 call gmaloj ( nomobj, ' ', iaux, adress, codre2 )
154 codre0 = min ( codre1, codre2 )
155 codret = max ( abs(codre0), codret,
158 if ( codret.ne.0 ) then
164 c 2.4. ==> allocation des options caracteres
166 if ( codret.eq.0 ) then
168 nomobj = nndoad//'.OptCar'
170 call gmecat ( nndoad, 3, iaux, codre1 )
171 call gmaloj ( nomobj, ' ', iaux, adress, codre2 )
173 codre0 = min ( codre1, codre2 )
174 codret = max ( abs(codre0), codret,
177 if ( codret.ne.0 ) then
183 c 2.5. ==> allocation de l'etat courant
185 if ( codret.eq.0 ) then
187 nomobj = nndoad//'.EtatCour'
189 call gmecat ( nndoad, 4, iaux, codre1 )
190 call gmaloj ( nomobj, ' ', iaux, adress, codre2 )
192 codre0 = min ( codre1, codre2 )
193 codret = max ( abs(codre0), codret,
196 if ( codret.ne.0 ) then
207 c 2.6. ==> le type de programme
209 if ( codret.eq.0 ) then
211 call gmecat ( nndoad, 5, typpro, codret )
213 if ( codret.ne.0 ) then
219 #ifdef _DEBUG_HOMARD_
220 call gmprsx (nompro, nndoad )
221 call gmprsx (nompro, nndoad//'.OptEnt' )
222 call gmprsx (nompro, nndoad//'.OptRee' )
223 call gmprsx (nompro, nndoad//'.OptCar' )
224 call gmprsx (nompro, nndoad//'.EtatCour' )
231 if ( codret.ne.0 ) then
235 write (ulsort,texte(langue,1)) 'Sortie', nompro
236 write (ulsort,texte(langue,2)) codret
237 if ( codret.eq.2 ) then
238 write (ulsort,texte(langue,10))
240 write (ulsort,texte(langue,4))
241 write (ulsort,*) nomobj
246 #ifdef _DEBUG_HOMARD_
247 write (ulsort,texte(langue,1)) 'Sortie', nompro