1 subroutine esveri ( nomfic, messin,
2 > ulsort, langue, codret )
3 c ______________________________________________________________________
7 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c Version originale enregistree le 18 juin 1996 sous le numero 96036
10 c aupres des huissiers de justice Simart et Lavoir a Clamart
11 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
12 c aupres des huissiers de justice
13 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
15 c HOMARD est une marque deposee d'Electricite de France
21 c ______________________________________________________________________
23 c Entree-Sortie - VERIfication du fichier
25 c ______________________________________________________________________
27 c . nom . e/s . taille . description .
28 c .____________________________________________________________________.
29 c . nomfic . e . 1 . nom du fichier a examiner .
30 c . messin . e . 1 . message d'informations .
31 c . . . . impressions MED si multiple de 3 .
32 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
33 c . langue . e . 1 . langue des messages .
34 c . . . . 1 : francais, 2 : anglais .
35 c . codret . es . 1 . code de retour des modules .
36 c . . . . 0 : pas de probleme .
37 c . . . . 1 : fichier inexistant .
38 c . . . . 2 : probleme de version HDF du fichier .
39 c . . . . 3 : probleme de version MED du fichier .
40 c . . . . 4 : impossible trouver version MED HOMARD .
41 c . . . . 5 : impossible trouver version MED fichier .
42 c ______________________________________________________________________
45 c 0. declarations et dimensionnement
48 c 0.1. ==> generalites
54 parameter ( nompro = 'ESVERI' )
69 integer ulsort, langue, codret
71 c 0.4. ==> variables locales
78 integer lgvhom, lgvfic
82 character*200 verhom, verfic
85 parameter ( nbmess = 150 )
86 character*80 texte(nblang,nbmess)
87 c ______________________________________________________________________
96 write (ulsort,texte(langue,1)) 'Entree', nompro
102 texte(1,4) = '(''Fichier : '',a)'
103 texte(1,11) = '(''Ce fichier n''''existe pas.'')'
104 texte(1,12) = '(''La version HDF est incompatible.'')'
105 texte(1,13) = '(''La version MED est incompatible.'')'
107 > '(''Impossible de trouver la bibliotheque MED de HOMARD.'')'
109 > '(''Impossible de trouver la bibliotheque MED du fichier.'')'
110 texte(1,16) = '(''Impossible de fermer le fichier.'')'
112 texte(2,4) = '(''File: '',a)'
113 texte(2,11) = '(''This file does not exist.'')'
114 texte(2,12) = '(''HDF release is uncorrect.'')'
115 texte(2,13) = '(''MED release is uncorrect.'')'
116 texte(2,14) = '(''MED library for HOMARD cannot be found.'')'
117 texte(2,15) = '(''MED library for file cannot be found.'')'
118 texte(2,16) = '(''The file cannot be closed.'')'
120 #ifdef _DEBUG_HOMARD_
121 write (ulsort,texte(langue,4)) nomfic
132 if ( codret.eq.0 ) then
134 inquire ( file = nomfic, exist = old )
141 c 2.2. ==> Compatibilite du fichier en version HDF et MED
143 if ( codret.eq.0 ) then
145 #ifdef _DEBUG_HOMARD_
146 write (ulsort,texte(langue,3)) 'MFICOM', nompro
148 call mficom ( nomfic, hdfok, medok, codret )
149 if ( codret.ne.0 ) then
152 if ( hdfok.ne.1 ) then
155 if ( medok.ne.1 ) then
160 cgn print *,codret,hdfok, medok,messin
164 if ( ( codret.eq.0 .and. mod(messin,3).eq.0 ) .or.
168 c 2.4.1. ==> versions de la bibliotheque MED utilisee par HOMARD
170 #ifdef _DEBUG_HOMARD_
171 write (ulsort,texte(langue,3)) 'MLBSTV', nompro
173 call mlbstv ( verhom, iaux )
175 if ( iaux.eq.0 ) then
176 #ifdef _DEBUG_HOMARD_
177 write (ulsort,texte(langue,3)) 'UTLGUT', nompro
179 call utlgut ( lgvhom, verhom,
180 > ulsort, langue, iaux )
181 if ( iaux.eq.0 ) then
182 write (ulsort,texte(langue,46)) 'HOMARD', verhom(1:lgvhom)
190 c 2.4.2. ==> versions de la bibliotheque MED du fichier
192 if ( iaux.eq.0 ) then
193 #ifdef _DEBUG_HOMARD_
194 write (ulsort,texte(langue,3)) 'MFIOPE', nompro
196 call mfiope ( idfmed, nomfic, edlect, iaux )
197 if ( iaux.ne.0 ) then
202 if ( iaux.eq.0 ) then
203 #ifdef _DEBUG_HOMARD_
204 write (ulsort,texte(langue,3)) 'MFISVR', nompro
206 call mfisvr ( idfmed, verfic, iaux )
207 if ( iaux.eq.0 ) then
208 #ifdef _DEBUG_HOMARD_
209 write (ulsort,texte(langue,3)) 'UTLGUT', nompro
211 call utlgut ( lgvfic, verfic,
212 > ulsort, langue, iaux )
213 if ( iaux.eq.0 ) then
214 write (ulsort,texte(langue,46)) nomfic, verfic(1:lgvfic)
223 if ( iaux.eq.0 ) then
224 #ifdef _DEBUG_HOMARD_
225 write (ulsort,texte(langue,3)) 'MFICLO', nompro
227 call mficlo ( idfmed, iaux )
228 if ( iaux.ne.0 ) then
239 if ( codret.ne.0 ) then
243 write (ulsort,texte(langue,1)) 'Sortie', nompro
244 write (ulsort,texte(langue,2)) codret
245 write (ulsort,texte(langue,8)) nomfic
246 write (ulsort,texte(langue,codret+10))
250 #ifdef _DEBUG_HOMARD_
251 write (ulsort,texte(langue,1)) 'Sortie', nompro