1 subroutine utsex2 ( nbfonc, nofonc,
2 > edsuav, edsuap, edsaav, edsaap, nbenti,
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 UTilitaire - Solution - EXtrusion - phase 2
26 c Changement des caracteristiques d'une fonction
27 c ______________________________________________________________________
29 c . nom . e/s . taille . description .
30 c .____________________________________________________________________.
31 c . nbfonc . e . 1 . nombre de fonctions a traiter .
32 c . nofonc . e . nbfonc . nom des objets qui contiennent la .
33 c . . . . description de chaque fonction .
34 c . edsuav . e . 1 . type med avant .
35 c . edsuap . e . 1 . type med apres .
36 c . edsaav . e . 1 . type med associe avant .
37 c . edsaap . e . 1 . type med associe apres .
38 c . nbenti . e . 1 . nombre d'entites apres .
39 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
40 c . langue . e . 1 . langue des messages .
41 c . . . . 1 : francais, 2 : anglais .
42 c . codret . es . 1 . code de retour des modules .
43 c . . . . 0 : pas de probleme .
44 c . . . . 1 : probleme .
45 c ______________________________________________________________________
48 c 0. declarations et dimensionnement
51 c 0.1. ==> generalites
57 parameter ( nompro = 'UTSEX2' )
70 integer edsuav, edsuap, edsaav, edsaap, nbenti
72 character*8 nofonc(nbfonc)
74 integer ulsort, langue, codret
76 c 0.4. ==> variables locales
79 integer codre1, codre2
82 integer nrfonc, nbtyas, typgeo
88 parameter ( nbmess = 10 )
89 character*80 texte(nblang,nbmess)
91 c 0.5. ==> initialisations
92 c ______________________________________________________________________
100 #ifdef _DEBUG_HOMARD_
101 write (ulsort,texte(langue,1)) 'Entree', nompro
105 texte(1,4) = '(''Fonction numero'',i3)'
107 texte(2,4) = '(''Function #'',i3)'
111 #ifdef _DEBUG_HOMARD_
112 write (ulsort,90015) 'Fonctions. Passage de', edsuav,' a', edsuap
113 write (ulsort,90015) 'S. associe. Passage de', edsaav,' a', edsaap
114 write (ulsort,90002) 'nbenti', nbenti
120 c 2. exploration des fonctions
123 do 20 , nrfonc = 1 , nbfonc
125 obfonc = nofonc(nrfonc)
127 #ifdef _DEBUG_HOMARD_
128 write (ulsort,texte(langue,4)) nrfonc
130 #ifdef _DEBUG_HOMARD_
131 call gmprsx (nompro, obfonc )
134 c 2.1. ==> caracteristiques de la fonction
136 if ( codret.eq.0 ) then
138 call gmliat ( obfonc, 1, typgeo, codre1 )
139 call gmliat ( obfonc, 5, nbtyas, codre2 )
141 codre0 = min ( codre1, codre2 )
142 codret = max ( abs(codre0), codret,
147 #ifdef _DEBUG_HOMARD_
148 write (ulsort,90002) 'typgeo', typgeo
149 write (ulsort,90002) 'nbtyas', nbtyas
152 c 2.2. ==> modification des caracteristiques entieres des fonctions
154 if ( typgeo.eq.edsuav ) then
156 c 2.2.1. ==> type geometrique du support et nombre de valeurs
158 if ( codret.eq.0 ) then
160 call gmecat ( obfonc, 1, edsuap, codre1 )
161 call gmecat ( obfonc, 3, nbenti, codre2 )
163 codre0 = min ( codre1, codre2 )
164 codret = max ( abs(codre0), codret,
169 c 2.2.2. ==> type associes eventuels
171 if ( nbtyas.gt.0 ) then
173 if ( codret.eq.0 ) then
175 call gmadoj ( obfonc//'.TypeSuAs', adtyas, iaux, codre0)
177 codret = max ( abs(codre0), codret )
179 if ( codret.eq.0 ) then
180 do 222 , iaux = 1 , nbtyas
181 if ( imem(adtyas-1+iaux).eq.edsaav ) then
182 imem(adtyas-1+iaux) = edsaap
199 if ( codret.ne.0 ) then
203 write (ulsort,texte(langue,1)) 'Sortie', nompro
204 write (ulsort,texte(langue,2)) codret
208 #ifdef _DEBUG_HOMARD_
209 write (ulsort,texte(langue,1)) 'Sortie', nompro