1 subroutine eslpg1 ( idfmed,
3 > ulsort, langue, codret )
4 c ______________________________________________________________________
8 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
10 c Version originale enregistree le 18 juin 1996 sous le numero 96036
11 c aupres des huissiers de justice Simart et Lavoir a Clamart
12 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
13 c aupres des huissiers de justice
14 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
16 c HOMARD est une marque deposee d'Electricite de France
22 c ______________________________________________________________________
24 c Entree-Sortie - Lecture des localisations des Points de Gauss
26 c au format MED - phase 1
28 c ______________________________________________________________________
30 c . nom . e/s . taille . description .
31 c .____________________________________________________________________.
32 c . idfmed . e . 1 . identifiant du fichier med .
33 c . nolopg . e . char64 . nom de la localisation a lire .
34 c . oblopg . s . char*8 . nom de l'objet de type 'LocaPG' associe .
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 . . . . 1 : probleme .
41 c ______________________________________________________________________
44 c 0. declarations et dimensionnement
47 c 0.1. ==> generalites
53 parameter ( nompro = 'ESLPG1' )
72 integer ulsort, langue, codret
74 c 0.4. ==> variables locales
81 integer typgeo, ngauss, dimcpg
82 integer adcono, adcopg, adpopg
85 parameter ( nbmess = 150 )
86 character*80 texte(nblang,nbmess)
88 c 0.5. ==> initialisations
89 c ______________________________________________________________________
95 c 1.1. ==> les messages
100 write (ulsort,texte(langue,1)) 'Entree', nompro
104 texte(1,4) = '(''Points de Gauss dans le fichier MED :'')'
105 texte(1,5) = '(/,''Lecture de la localisation '',a)'
107 texte(2,4) = '(''Gauss points in MED file :'')'
108 texte(2,5) = '(/,''Readings of localization '',a)'
110 #ifdef _DEBUG_HOMARD_
111 write (ulsort,texte(langue,5)) nolopg
117 c 2. caracterisation de la localisation a lire
120 if ( codret.eq.0 ) then
122 #ifdef _DEBUG_HOMARD_
123 write (ulsort,texte(langue,3)) 'ESLPG2', nompro
126 call eslpg2 ( idfmed,
127 > nolopg, typgeo, ngauss, dimcpg,
128 > ulsort, langue, codret )
132 if ( codret.eq.0 ) then
134 #ifdef _DEBUG_HOMARD_
135 write (ulsort,texte(langue,81)) nolopg
136 write (ulsort,texte(langue,64)) typgeo
137 write (ulsort,texte(langue,57)) ngauss
143 c 3. Allocation de la localisation
146 if ( codret.eq.0 ) then
148 #ifdef _DEBUG_HOMARD_
149 write (ulsort,texte(langue,3)) 'UTALPG', nompro
152 call utalpg ( oblopg,
153 > nolopg, typgeo, ngauss, dimcpg,
154 > adcono, adcopg, adpopg,
155 > ulsort, langue, codret )
160 c 4. Lecture de la localisation
163 if ( codret.eq.0 ) then
165 #ifdef _DEBUG_HOMARD_
166 write (ulsort,texte(langue,3)) 'MLCLOR', nompro
168 call mlclor ( idfmed, nolopg, edfuin,
169 > rmem(adcono), rmem(adcopg), rmem(adpopg),
172 #ifdef _DEBUG_HOMARD_
173 write (ulsort,texte(langue,5)) nolopg
174 iaux = mod(typgeo,100)
175 jaux = (typgeo-iaux) / 100
176 call utimpg ( 2, ngauss, iaux, jaux,
177 > rmem(adcono), rmem(adcopg), rmem(1),
178 > ulsort, langue, codret )
181 #ifdef _DEBUG_HOMARD_
182 call gmprsx (nompro, oblopg )
183 call gmprsx (nompro, oblopg//'.NomLocPG' )
184 call gmprsx (nompro, oblopg//'.CoorNoeu' )
185 call gmprsx (nompro, oblopg//'.CoorPtGa' )
186 call gmprsx (nompro, oblopg//'.PoidPtGa' )
195 if ( codret.ne.0 ) then
199 write (ulsort,texte(langue,1)) 'Sortie', nompro
200 write (ulsort,texte(langue,2)) codret
204 #ifdef _DEBUG_HOMARD_
205 write (ulsort,texte(langue,1)) 'Sortie', nompro