1 subroutine vcmail ( lgopti, taopti, lgopts, taopts,
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 aVant adaptation - Conversion de MAILlage
26 c ______________________________________________________________________
28 c . nom . e/s . taille . description .
29 c .____________________________________________________________________.
30 c . lgopti . e . 1 . longueur du tableau des options .
31 c . taopti . e . lgopti . tableau des options .
32 c . lgopts . e . 1 . longueur du tableau des options caracteres .
33 c . taopts . e . lgopts . tableau des options caracteres .
34 c . lgetco . e . 1 . longueur du tableau de l'etat courant .
35 c . taetco . e . lgetco . tableau de l'etat courant .
36 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
37 c . langue . e . 1 . langue des messages .
38 c . . . . 1 : francais, 2 : anglais .
39 c . codret . es . 1 . code de retour des modules .
40 c . . . . 0 : pas de probleme .
41 c . . . . 5 : mauvais type de code de calcul associe .
42 c ______________________________________________________________________
45 c 0. declarations et dimensionnement
48 c 0.1. ==> generalites
54 parameter ( nompro = 'VCMAIL' )
66 integer taopti(lgopti)
69 character*8 taopts(lgopts)
72 integer taetco(lgetco)
74 integer ulsort, langue, codret
76 c 0.4. ==> variables locales
79 integer nretap, nrsset
85 character*8 typobs, nocman, nohman
88 parameter ( nbmess = 10 )
89 character*80 texte(nblang,nbmess)
91 c 0.5. ==> initialisations
92 c ______________________________________________________________________
96 c=======================================================================
97 if ( codava.eq.0 ) then
98 c=======================================================================
106 #ifdef _DEBUG_HOMARD_
107 write (ulsort,texte(langue,1)) 'Entree', nompro
111 texte(1,4) = '(/,a6,'' CONVERSION DU MAILLAGE'')'
112 texte(1,5) = '(29(''=''),/)'
113 texte(1,6) = '(''Le nom du maillage HOMARD est inconnu.'')'
115 texte(2,4) = '(/,a6,'' MESH CONVERSION'')'
116 texte(2,5) = '(22(''=''),/)'
117 texte(2,6) = '(''The name of the HOMARD mesh is unknown.'')'
119 c 1.4. ==> le numero de sous-etape
122 nrsset = taetco(2) + 1
125 call utcvne ( nretap, nrsset, saux, iaux, codret )
129 if ( taopti(4).ne.2 ) then
130 write (ulsort,texte(langue,4)) saux
131 write (ulsort,texte(langue,5))
137 c 2. les structures de base
140 if ( codret.eq.0 ) then
142 c 2.1. ==> le maillage homard
143 c . en mode information et si l'entree n'est pas au format
144 c HOMARD et si on ne souhaite pas archiver le maillage,
145 c le nom du maillage HOMARD est cree automatiquement.
146 c . dans tous les autres modes, on doit l'avoir fourni.
148 if ( taopti(4).eq.2 .and.
149 > taopti(11).ne.1 .and.
150 > taopti(5).eq.1 ) then
160 call utosno ( typobs, nohman, iaux, ulsort, langue, codret )
161 if ( codret.ne.0 ) then
162 write (ulsort,texte(langue,6))
167 c 2.2. ==> le maillage de calcul
174 c 3. conversion du maillage
176 c 3.1. ==> les connectivites
177 #ifdef _DEBUG_HOMARD_
178 write (ulsort,90002) '3.1. connectivites ; codret', codret
181 if ( codret.eq.0 ) then
183 #ifdef _DEBUG_HOMARD_
184 write (ulsort,texte(langue,3)) 'VCMACO', nompro
187 call vcmaco ( taopti(4), taopti(11), taopti(49),
188 > taopti(30), taopti(39),
189 > nocman, nohman, typnom,
190 > ulsort, langue, codret )
192 if ( codret.eq.0 ) then
200 c 3.2. ==> les familles
201 #ifdef _DEBUG_HOMARD_
202 write (ulsort,90002) '3.2. familles ; codret', codret
205 if ( codret.eq.0 ) then
207 #ifdef _DEBUG_HOMARD_
208 write (ulsort,texte(langue,3)) 'VCMAFA', nompro
211 call vcmafa ( taopti(4), taopti(31), taopti(30), taopti(29),
213 > taopts(17), taopts(25), taopts(23), taopts(24),
214 > ulsort, langue, codret )
218 c 3.3. ==> verifications sauf pour une information car c'est fait apres
219 #ifdef _DEBUG_HOMARD_
220 write (ulsort,90002) '3.3. verifications ; codret', codret
223 if ( codret.eq.0 ) then
227 #ifdef _DEBUG_HOMARD_
230 if ( action.ne.'info_av ' ) then
233 if ( action.eq.'homa ' ) then
236 #ifdef _DEBUG_HOMARD_
237 write (ulsort,texte(langue,3)) 'VCMVER', nompro
239 call vcmver ( taopti(4), nohman, action,
240 > ulsort, langue, codret )
242 #ifdef _DEBUG_HOMARD_
254 if ( codret.ne.0 ) then
258 write (ulsort,texte(langue,1)) 'Sortie', nompro
259 write (ulsort,texte(langue,2)) codret
263 #ifdef _DEBUG_HOMARD_
264 write (ulsort,texte(langue,1)) 'Sortie', nompro
268 c=======================================================================
270 c=======================================================================