1 subroutine esemh2 ( idfmed, nomamd,
2 > nhnoeu, nhmapo, nharet, nhtria, nhquad,
3 > nhtetr, nhhexa, nhpyra, nhpent,
5 > ltbiau, tbiaux, ltbsau, tbsaux,
6 > ulsort, langue, codret)
8 c ______________________________________________________________________
12 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
14 c Version originale enregistree le 18 juin 1996 sous le numero 96036
15 c aupres des huissiers de justice Simart et Lavoir a Clamart
16 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
17 c aupres des huissiers de justice
18 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
20 c HOMARD est une marque deposee d'Electricite de France
26 c ______________________________________________________________________
28 c Entree-Sortie : Ecriture du Maillage Homard - 2
30 c ______________________________________________________________________
31 c . nom . e/s . taille . description .
32 c .____________________________________________________________________.
33 c . idfmed . e . 1 . identificateur du fichier MED .
34 c . nomamd . e .char64 . nom du maillage MED voulu .
35 c . nhsups . e . char*8 . informations supplementaires caracteres 8 .
36 c . ltbiau . e . 1 . longueur allouee a tbiaux .
37 c . tbiaux . . * . tableau tampon entier .
38 c . ltbsau . e . 1 . longueur allouee a tbsaux .
39 c . tbsaux . . * . tableau tampon caracteres .
40 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
41 c . langue . e . 1 . langue des messages .
42 c . . . . 1 : francais, 2 : anglais .
43 c . codret . es . 1 . code de retour des modules .
44 c . . . . 0 : pas de probleme .
45 c ______________________________________________________________________
48 c 0. declarations et dimensionnement
51 c 0.1. ==> generalites
57 parameter ( nompro = 'ESEMH2' )
70 integer ltbiau, tbiaux(ltbiau)
74 character*8 nhnoeu, nhmapo, nharet, nhtria, nhquad
75 character*8 nhtetr, nhhexa, nhpyra, nhpent
80 integer ulsort, langue, codret
82 c 0.4. ==> variables locales
90 character*80 saux80(2)
93 parameter ( nbmess = 150 )
94 character*80 texte(nblang,nbmess)
95 c ______________________________________________________________________
104 #ifdef _DEBUG_HOMARD_
105 write (ulsort,texte(langue,1)) 'Entree', nompro
109 texte(1,4) = '(''. Ecriture des familles'')'
111 texte(2,4) = '(''. Writings of families'')'
113 #ifdef _DEBUG_HOMARD_
114 write (ulsort,texte(langue,4))
120 c 2. La famille nulle
122 #ifdef _DEBUG_HOMARD_
123 write (ulsort,*) '2. famille nulle ; codret = ', codret
126 if ( codret.eq.0) then
128 #ifdef _DEBUG_HOMARD_
129 write (ulsort,*) '. La famille nulle'
133 saux64(1:13) = 'famille_nulle'
137 #ifdef _DEBUG_HOMARD_
138 write (ulsort,texte(langue,3)) 'MFACRE', nompro
140 call mfacre ( idfmed, nomamd, saux64, numfam,
141 > ngro, saux80, codret )
143 if ( codret.ne.0 ) then
144 write(ulsort,texte(langue,78)) 'mfacre', codret
150 c 3. Les familles des entites
152 #ifdef _DEBUG_HOMARD_
153 write (ulsort,*) '3. entites ; codret = ', codret
156 if ( codret.eq.0 ) then
158 #ifdef _DEBUG_HOMARD_
159 write (ulsort,texte(langue,3)) 'ESECFE', nompro
161 call esecfe ( idfmed, nomamd,
162 > nhnoeu, nhmapo, nharet, nhtria, nhquad,
163 > nhtetr, nhhexa, nhpyra, nhpent,
166 > ulsort, langue, codret )
171 c 4. La famille de la date et du titre
173 #ifdef _DEBUG_HOMARD_
174 write (ulsort,*) '4. date et titre ; codret = ', codret
177 if ( codret.eq.0 ) then
179 #ifdef _DEBUG_HOMARD_
180 write (ulsort,*) '. La famille de la date et du titre'
184 saux64(1:13) = 'date_et_titre'
187 c 90123456789012345678901234567890
188 saux80(1) = ladate//' '
191 #ifdef _DEBUG_HOMARD_
192 write (ulsort,texte(langue,3)) 'MFACRE', nompro
194 call mfacre ( idfmed, nomamd, saux64, numfam,
195 > ngro, saux80, codret )
197 if ( codret.ne.0 ) then
198 write(ulsort,texte(langue,78)) 'mfacre', codret
204 c 5. Les familles des informations complementaires
206 #ifdef _DEBUG_HOMARD_
207 write (ulsort,*) '5. Info supp ; codret = ', codret
210 if ( codret.eq.0 ) then
212 #ifdef _DEBUG_HOMARD_
213 write (ulsort,*) '. Familles des informations complementaires'
216 #ifdef _DEBUG_HOMARD_
217 write (ulsort,texte(langue,3)) 'ESECFS', nompro
219 call esecfs ( idfmed, nomamd,
223 > ulsort, langue, codret)
231 if ( codret.ne.0 ) then
235 write (ulsort,texte(langue,1)) 'Sortie', nompro
236 write (ulsort,texte(langue,2)) codret
240 #ifdef _DEBUG_HOMARD_
241 write (ulsort,texte(langue,1)) 'Sortie', nompro