1 subroutine vcind2 ( nrfonc,
3 > advalr, nbtafo, nbenmx, nbpg, tyelho,
5 > ulsort, langue, codret)
6 c ______________________________________________________________________
10 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
12 c Version originale enregistree le 18 juin 1996 sous le numero 96036
13 c aupres des huissiers de justice Simart et Lavoir a Clamart
14 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
15 c aupres des huissiers de justice
16 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
18 c HOMARD est une marque deposee d'Electricite de France
24 c ______________________________________________________________________
26 c aVant adaptation - Conversion d'INDicateur - phase 2
28 c recuperation des caracteristiques du n-eme tableau de valeurs
29 c ______________________________________________________________________
31 c . nom . e/s . taille . description .
32 c .____________________________________________________________________.
33 c . nrfonc . e . 1 . numero de la fonction en cours .
34 c . caraca . e . nbincc*. caracteristiques caracteres des tableaux .
35 c . . . nbsqch . du champ en cours d'examen .
36 c . . . . 1. nom de l'objet fonction .
37 c . . . . 2. nom de l'objet profil, blanc sinon .
38 c . . . . 3. nom de l'objet localisation des points .
39 c . . . . de Gauss, blanc sinon .
40 c . advalr . s . 1 . adresse des valeurs reelles .
41 c . nbtafo . s . 1 . nombre de tableaux dans la fonction .
42 c . nbenmx . s . 1 . nombre d'entites maximum .
43 c . nbpg . s . 1 . nombre de points de Gauss .
44 c . tyelho . s . 1 . type d'element au sens HOMARD .
45 c . nbvapr . s . 1 . nombre de valeurs du profil .
46 c . . . . -1, si pas de profil .
47 c . adlipr . s . 1 . adresse de la liste du profil .
48 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
49 c . langue . e . 1 . langue des messages .
50 c . . . . 1 : francais, 2 : anglais .
51 c . codret . es . 1 . code de retour des modules .
52 c . . . . 0 : pas de probleme .
53 c . . . . 5 : mauvais type de code de calcul associe .
54 c ______________________________________________________________________
57 c 0. declarations et dimensionnement
60 c 0.1. ==> generalites
66 parameter ( nompro = 'VCIND2' )
82 integer advalr, nbtafo, nbenmx, nbpg
83 integer adlipr, nbvapr
86 character*8 caraca(nbincc,*)
88 integer ulsort, langue, codret
90 c 0.4. ==> variables locales
92 integer typgeo, ngauss, nbtyas, carsup, typint
94 integer advale, adobch, adprpg, adtyas
96 character*8 nofonc, noprof
100 parameter ( nbmess = 10 )
101 character*80 texte(nblang,nbmess)
103 c 0.5. ==> initialisations
104 c ______________________________________________________________________
112 #ifdef _DEBUG_HOMARD_
113 write (ulsort,texte(langue,1)) 'Entree', nompro
117 texte(1,4) = '(''Nombre de points de Gauss : '',i5)'
118 texte(1,5) = '(''On ne sait pas faire.'')'
119 texte(1,6) = '(/,''Type d''''element HOMARD associe :'',i3)'
120 texte(1,7) = '(''Pas de profil associe.'')'
121 texte(1,8) = '(''Nombre de valeurs du profil :'',i10)'
123 texte(2,4) = '(''Number of Gauss points : '',i5)'
124 texte(2,5) = '(''We cannot do it.'')'
125 texte(2,6) = '(/,''HOMARD element :'',i3)'
126 texte(2,7) = '(''No profile connected to the field.'')'
127 texte(2,8) = '(''Number of values in profile :'',i10)'
130 c 2. caracteristiques de la fonction associee
133 if ( codret.eq.0 ) then
135 nofonc = caraca(1,nrfonc)
137 #ifdef _DEBUG_HOMARD_
138 call gmprsx (nompro, nofonc )
139 cgn call gmprsx (nompro, nofonc//'.ValeursR' )
140 call gmprot (nompro, nofonc//'.ValeursR', 1, 30 )
143 #ifdef _DEBUG_HOMARD_
144 write (ulsort,texte(langue,3)) 'UTCAFO', nompro
146 call utcafo ( nofonc,
148 > typgeo, ngauss, nbenmx, jaux, nbtyas,
149 > carsup, nbtafo, typint,
150 > advale, advalr, adobch, adprpg, adtyas,
151 > ulsort, langue, codret )
155 if ( codret.eq.0 ) then
157 if ( ngauss.eq.ednopg ) then
159 elseif ( ngauss.gt.0 ) then
162 write (ulsort,texte(langue,4)) ngauss
163 write (ulsort,texte(langue,5))
167 tyelho = medtrf(typgeo)
168 #ifdef _DEBUG_HOMARD_
169 write (ulsort,texte(langue,6)) tyelho
173 cgn print *,medtrf(102),medtrf(103)
174 cgn print *,medtrf(203),medtrf(206)
175 cgn print *,medtrf(304),medtrf(310)
176 cgn print *,'nrfonc, typgeo, tyelho = ',nrfonc, typgeo, tyelho
179 c 3. caracteristiques du profil associe
182 if ( codret.eq.0 ) then
184 noprof = caraca(2,nrfonc)
185 cgn print *,'noprof = ',noprof
187 if ( noprof.eq.' ' ) then
191 #ifdef _DEBUG_HOMARD_
192 write (ulsort,texte(langue,7))
197 #ifdef _DEBUG_HOMARD_
198 call gmprsx (nompro, noprof )
199 call gmprsx (nompro, noprof//'.NomProfi' )
200 call gmprot (nompro, noprof//'.ListEnti', 1, 10 )
203 #ifdef _DEBUG_HOMARD_
204 write (ulsort,texte(langue,3)) 'UTCAPR', nompro
206 call utcapr ( noprof,
207 > nbvapr, profil, adlipr,
208 > ulsort, langue, codret )
210 #ifdef _DEBUG_HOMARD_
211 write (ulsort,texte(langue,8)) nbvapr
217 cgn print *,'nbvapr = ',nbvapr
223 if ( codret.ne.0 ) then
227 write (ulsort,texte(langue,1)) 'Sortie', nompro
228 write (ulsort,texte(langue,2)) codret
232 #ifdef _DEBUG_HOMARD_
233 write (ulsort,texte(langue,1)) 'Sortie', nompro