Salome HOME
Homard executable
[modules/homard.git] / src / tool / ES_MED / eslpg1.F
1       subroutine eslpg1 ( idfmed,
2      >                    nolopg, oblopg,
3      >                    ulsort, langue, codret )
4 c ______________________________________________________________________
5 c
6 c                             H O M A R D
7 c
8 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c
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
15 c
16 c    HOMARD est une marque deposee d'Electricite de France
17 c
18 c Copyright EDF 1996
19 c Copyright EDF 1998
20 c Copyright EDF 2002
21 c Copyright EDF 2020
22 c ______________________________________________________________________
23 c
24 c  Entree-Sortie - Lecture des localisations des Points de Gauss
25 c  -      -        -                             -         -
26 c                  au format MED - phase 1
27 c                                        -
28 c ______________________________________________________________________
29 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 ______________________________________________________________________
42 c
43 c====
44 c 0. declarations et dimensionnement
45 c====
46 c
47 c 0.1. ==> generalites
48 c
49       implicit none
50       save
51 c
52       character*6 nompro
53       parameter ( nompro = 'ESLPG1' )
54 c
55 #include "nblang.h"
56 #include "consts.h"
57 #include "meddc0.h"
58 c
59 c 0.2. ==> communs
60 c
61 #include "envex1.h"
62 c
63 #include "gmreel.h"
64 c
65 c 0.3. ==> arguments
66 c
67       integer*8 idfmed
68 c
69       character*8 oblopg
70       character*64 nolopg
71 c
72       integer ulsort, langue, codret
73 c
74 c 0.4. ==> variables locales
75 c
76       integer iaux
77 #ifdef _DEBUG_HOMARD_
78       integer jaux
79 #endif
80 c
81       integer typgeo, ngauss, dimcpg
82       integer adcono, adcopg, adpopg
83 c
84       integer nbmess
85       parameter ( nbmess = 150 )
86       character*80 texte(nblang,nbmess)
87 c
88 c 0.5. ==> initialisations
89 c ______________________________________________________________________
90 c
91 c====
92 c 1. initialisations
93 c====
94 c
95 c 1.1. ==> les messages
96 c
97 #include "impr01.h"
98 c
99 #ifdef _DEBUG_HOMARD_
100       write (ulsort,texte(langue,1)) 'Entree', nompro
101       call dmflsh (iaux)
102 #endif
103 c
104       texte(1,4) = '(''Points de Gauss dans le fichier MED :'')'
105       texte(1,5) = '(/,''Lecture de la localisation '',a)'
106 c
107       texte(2,4) = '(''Gauss points in MED file :'')'
108       texte(2,5) = '(/,''Readings of localization '',a)'
109 c
110 #ifdef _DEBUG_HOMARD_
111       write (ulsort,texte(langue,5)) nolopg
112 #endif
113 c
114 #include "esimpr.h"
115 c
116 c====
117 c 2. caracterisation de la localisation a lire
118 c====
119 c
120       if ( codret.eq.0 ) then
121 c
122 #ifdef _DEBUG_HOMARD_
123       write (ulsort,texte(langue,3)) 'ESLPG2', nompro
124 #endif
125 c
126       call eslpg2 ( idfmed,
127      >              nolopg, typgeo, ngauss, dimcpg,
128      >              ulsort, langue, codret )
129 c
130       endif
131 c
132       if ( codret.eq.0 ) then
133 c
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
138 #endif
139 c
140       endif
141 c
142 c====
143 c 3. Allocation de la localisation
144 c====
145 c
146       if ( codret.eq.0 ) then
147 c
148 #ifdef _DEBUG_HOMARD_
149       write (ulsort,texte(langue,3)) 'UTALPG', nompro
150 #endif
151 c
152       call utalpg ( oblopg,
153      >              nolopg, typgeo, ngauss, dimcpg,
154      >              adcono, adcopg, adpopg,
155      >              ulsort, langue, codret )
156 c
157       endif
158 c
159 c====
160 c 4. Lecture de la localisation
161 c====
162 c
163       if ( codret.eq.0 ) then
164 c
165 #ifdef _DEBUG_HOMARD_
166       write (ulsort,texte(langue,3)) 'MLCLOR', nompro
167 #endif
168       call mlclor ( idfmed, nolopg, edfuin,
169      >              rmem(adcono), rmem(adcopg), rmem(adpopg),
170      >              codret )
171 c
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 )
179 #endif
180 c
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' )
187 #endif
188 c
189       endif
190 c
191 c====
192 c 5. la fin
193 c====
194 c
195       if ( codret.ne.0 ) then
196 c
197 #include "envex2.h"
198 c
199       write (ulsort,texte(langue,1)) 'Sortie', nompro
200       write (ulsort,texte(langue,2)) codret
201 c
202       endif
203 c
204 #ifdef _DEBUG_HOMARD_
205       write (ulsort,texte(langue,1)) 'Sortie', nompro
206       call dmflsh (iaux)
207 #endif
208 c
209       end