1 subroutine utcapf ( obpafo,
2 > nbfopa, typgpf, ngauss, carsup, typint,
4 > ulsort, langue, codret )
5 c ______________________________________________________________________
9 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
11 c Version originale enregistree le 18 juin 1996 sous le numero 96036
12 c aupres des huissiers de justice Simart et Lavoir a Clamart
13 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
14 c aupres des huissiers de justice
15 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
17 c HOMARD est une marque deposee d'Electricite de France
23 c ______________________________________________________________________
25 c UTilitaire - CAracteristiques d'un Paquet de Fonctions
27 c ______________________________________________________________________
29 c . nom . e/s . taille . description .
30 c .____________________________________________________________________.
31 c . obpafo . e . char8 . nom de l'objet du paquet de fonctions .
32 c . nbfopa . s . 1 . nombre de fonctions dans le paquet .
33 c . typgpf . s . 1 . si >0 : type geometrique s'il est unique .
34 c . . . . si <0 : nombre de type geometriques associe.
35 c . ngauss . s . 1 . nombre de points de gauss .
36 c . carsup . s . 1 . caracteristiques du support .
37 c . . . . 1, si aux noeuds par elements .
38 c . . . . 2, si aux points de Gauss, associe avec .
39 c . . . . n champ aux noeuds par elements .
40 c . . . . 3 si aux points de Gauss autonome .
42 c . typint . s . s . type d'interpolation .
43 c . . . . 0, si automatique .
44 c . . . . elements : 0 si intensif, sans orientation.
45 c . . . . 1 si extensif, sans orientation.
46 c . . . . 2 si intensif, avec orientation.
47 c . . . . 3 si extensif, avec orientation.
48 c . . . . noeuds : 1 si degre 1 .
49 c . . . . 2 si degre 2 .
50 c . . . . 3 si iso-P2 .
51 c . adobfo . s . 1 . adresse des noms des objets 'Fonction' et .
52 c . . . . de l'eventuel paquet associe .
53 c . adtyge . s . 1 . adresse des types geometriques .
54 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
55 c . langue . e . 1 . langue des messages .
56 c . . . . 1 : francais, 2 : anglais .
57 c . codret . es . 1 . code de retour des modules .
58 c . . . . 0 : pas de probleme .
59 c . . . . 1 : probleme .
60 c ______________________________________________________________________
63 c 0. declarations et dimensionnement
66 c 0.1. ==> generalites
72 parameter ( nompro = 'UTCAPF' )
84 integer nbfopa, typgpf, ngauss, carsup, typint
85 integer adobfo, adtyge
87 integer ulsort, langue, codret
89 c 0.4. ==> variables locales
92 integer codre1, codre2, codre3, codre4, codre5
96 parameter ( nbmess = 10 )
97 character*80 texte(nblang,nbmess)
99 c 0.5. ==> initialisations
100 c ______________________________________________________________________
110 #ifdef _DEBUG_HOMARD_
111 write (ulsort,texte(langue,1)) 'Entree', nompro
116 > '(''Impossible de lire les attributs de l''''objet '',a)'
118 > '(''Impossible de lire les valeurs de l''''objet '',a)'
120 texte(2,4) = '(''Attributes of object '',a,'' cannot be read.'')'
121 texte(2,5) = '(''Values of object '',a,'' cannot be read.'')'
123 #ifdef _DEBUG_HOMARD_
124 call gmprsx (nompro, obpafo )
125 call gmprsx (nompro, obpafo//'.Fonction' )
131 c 2. caracteristiques du paquet de fonctions
134 call gmliat ( obpafo, 1, nbfopa, codre1 )
135 call gmliat ( obpafo, 2, typgpf, codre2 )
136 call gmliat ( obpafo, 3, ngauss, codre3 )
137 call gmliat ( obpafo, 4, carsup, codre4 )
138 call gmliat ( obpafo, 5, typint, codre5 )
140 codre0 = min ( codre1, codre2, codre3, codre4, codre5 )
141 codret = max ( abs(codre0), codret,
142 > codre1, codre2, codre3, codre4, codre5 )
144 if ( codret.ne.0 ) then
145 write (ulsort,texte(langue,4)) obpafo
151 #ifdef _DEBUG_HOMARD_
152 write (ulsort,*) '3. branches ; codret = ', codret
155 if ( codret.eq.0 ) then
157 call gmadoj ( obpafo//'.Fonction', adobfo, iaux, codret )
159 if ( codret.ne.0 ) then
160 write (ulsort,texte(langue,5)) obpafo
165 if ( typgpf.lt.0 ) then
167 if ( codret.eq.0 ) then
169 call gmadoj ( obpafo//'.TypeSuAs', adtyge, iaux, codret )
171 if ( codret.ne.0 ) then
172 write (ulsort,texte(langue,5)) obpafo
183 if ( codret.ne.0 ) then
187 write (ulsort,texte(langue,1)) 'Sortie', nompro
188 write (ulsort,texte(langue,2)) codret
192 #ifdef _DEBUG_HOMARD_
193 write (ulsort,texte(langue,1)) 'Sortie', nompro