Salome HOME
Homard executable
[modules/homard.git] / src / tool / ES_MED / eslpr1.F
1       subroutine eslpr1 ( idfmed,
2      >                    noprof, obprof, nbvapr,
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 d'un PRofil au format MED - phase 1
25 c  -      -        -            --                           -
26 c ______________________________________________________________________
27 c .        .     .        .                                            .
28 c .  nom   . e/s . taille .           description                      .
29 c .____________________________________________________________________.
30 c . idfmed . e   .   1    . identifiant du fichier med en entree       .
31 c . noprof . e   . char64 . nom du profil a lire                       .
32 c . obprof .  s  . char*8 . nom de l'objet de type 'Profil' associe    .
33 c . nbvapr .  s  .   1    . nombre de valeurs du profil                .
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 .        .     .        . 1 : probleme                               .
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 = 'ESLPR1' )
53 c
54 #include "nblang.h"
55 #include "consts.h"
56 #include "meddc0.h"
57 c
58 c 0.2. ==> communs
59 c
60 #include "envex1.h"
61 c
62 #include "gmenti.h"
63 c
64 c 0.3. ==> arguments
65 c
66       integer*8 idfmed
67       integer nbvapr
68 c
69       character*64 noprof
70       character*8 obprof
71 c
72       integer ulsort, langue, codret
73 c
74 c 0.4. ==> variables locales
75 c
76       integer iaux
77       integer adlipr
78 c
79       integer nbmess
80       parameter ( nbmess = 150 )
81       character*80 texte(nblang,nbmess)
82 c
83 c 0.5. ==> initialisations
84 c ______________________________________________________________________
85 c
86 c====
87 c 1. initialisations
88 c====
89 c
90 c 1.1. ==> les messages
91 c
92 #include "impr01.h"
93 c
94 #ifdef _DEBUG_HOMARD_
95       write (ulsort,texte(langue,1)) 'Entree', nompro
96       call dmflsh (iaux)
97 #endif
98 c
99       texte(1,4) = '(''Longueur du profil dans le fichier MED :'')'
100 c
101       texte(2,4) = '(''Profile length in MED file :'')'
102 c
103 #include "esimpr.h"
104 cgn      print *, '. nbcomp = ', nbcomp
105 cgn      print *, '. typerr = ', typerr
106 c
107 #ifdef _DEBUG_HOMARD_
108       write (ulsort,texte(langue,61)) noprof
109 #endif
110 c
111 c====
112 c 2. taille du profil a lire
113 c====
114 c
115       if ( codret.eq.0 ) then
116 c
117 #ifdef _DEBUG_HOMARD_
118       write (ulsort,texte(langue,3)) 'MPFPSN', nompro
119 #endif
120       call mpfpsn ( idfmed, noprof, nbvapr, codret )
121       if ( codret.ne.0 ) then
122       write (ulsort,texte(langue,4))
123       write (ulsort,texte(langue,79))
124       endif
125 c
126 #ifdef _DEBUG_HOMARD_
127       write (ulsort,texte(langue,62)) nbvapr
128 #endif
129 c
130       endif
131 c
132 c====
133 c 3. Allocation du profil
134 c====
135 c
136       if ( codret.eq.0 ) then
137 c
138       call utalpr ( obprof,
139      >              nbvapr, noprof,
140      >              adlipr,
141      >              ulsort, langue, codret )
142 c
143       endif
144 c
145 c====
146 c 4. Lecture du profil
147 c====
148 c
149       if ( codret.eq.0 ) then
150 c
151 #ifdef _DEBUG_HOMARD_
152       write (ulsort,texte(langue,3)) 'MPFPRR', nompro
153 #endif
154       call mpfprr ( idfmed, noprof, imem(adlipr), codret )
155 c
156       endif
157 c
158 #ifdef _DEBUG_HOMARD_
159       call gmprsx (nompro,obprof)
160       call gmprsx (nompro,obprof//'.NomProfi')
161       call gmprsx (nompro,obprof//'.ListEnti')
162 #endif
163 c
164 c====
165 c 5. la fin
166 c====
167 c
168       if ( codret.ne.0 ) then
169 c
170 #include "envex2.h"
171 c
172       write (ulsort,texte(langue,1)) 'Sortie', nompro
173       write (ulsort,texte(langue,2)) codret
174 c
175       endif
176 c
177 #ifdef _DEBUG_HOMARD_
178       write (ulsort,texte(langue,1)) 'Sortie', nompro
179       call dmflsh (iaux)
180 #endif
181 c
182       end