1 subroutine utcapr ( obprof,
2 > nbvapr, noprof, adlipr,
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 - CAracteristiques d'un PRofil
26 c ______________________________________________________________________
28 c . nom . e/s . taille . description .
29 c .____________________________________________________________________.
30 c . obprof . e . char8 . nom de l'objet profil .
31 c . nbvapr . s . 1 . nombre de valeurs .
32 c . noprof . s . char64 . nom du profil .
33 c . adlipr . s . 1 . adresse de la liste des entites .
34 c . langue . e . 1 . langue des messages .
35 c . . . . 1 : francais, 2 : anglais .
36 c . codret . es . 1 . code de retour des modules .
37 c . . . . 0 : pas de probleme .
38 c . . . . 1 : probleme .
39 c ______________________________________________________________________
42 c 0. declarations et dimensionnement
45 c 0.1. ==> generalites
51 parameter ( nompro = 'UTCAPR' )
70 integer ulsort, langue, codret
72 c 0.4. ==> variables locales
75 integer codre1, codre2, codre3, codre4
77 integer lgnomp, adnomp
80 parameter ( nbmess = 10 )
81 character*80 texte(nblang,nbmess)
83 c 0.5. ==> initialisations
84 c ______________________________________________________________________
95 write (ulsort,texte(langue,1)) 'Entree', nompro
99 texte(1,4) = '(''Nom du profil : '',a)'
100 texte(1,5) = '(''Longueur du nom du profil : '',i10)'
102 texte(2,4) = '(''Name of the profile : '',a)'
103 texte(2,5) = '(''Longueur du nom du profil : '',i10)'
105 #ifdef _DEBUG_HOMARD_
106 call gmprsx (nompro, obprof )
107 call gmprsx (nompro, obprof//'.NomProfi' )
108 call gmprot (nompro, obprof//'.ListEnti', 1, 10 )
112 c 2. caracteristiques du profil
115 if ( codret.eq.0 ) then
117 call gmliat ( obprof, 1, lgnomp, codre1 )
118 call gmliat ( obprof, 2, nbvapr, codre2 )
119 call gmadoj ( obprof//'.NomProfi', adnomp, iaux, codre3 )
120 call gmadoj ( obprof//'.ListEnti', adlipr, iaux, codre4 )
122 codre0 = min ( codre1, codre2, codre3, codre4 )
123 codret = max ( abs(codre0), codret,
124 > codre1, codre2, codre3, codre4 )
129 c 3. le nom du profil
132 if ( codret.eq.0 ) then
133 #ifdef _DEBUG_HOMARD_
134 write (ulsort,texte(langue,5)) lgnomp
137 if ( lgnomp.gt.0 ) then
139 call uts8ch ( smem(adnomp), lgnomp, noprof,
140 > ulsort, langue, codret )
150 #ifdef _DEBUG_HOMARD_
151 write (ulsort,texte(langue,4)) noprof
158 if ( codret.ne.0 ) then
162 write (ulsort,texte(langue,1)) 'Sortie', nompro
163 write (ulsort,texte(langue,2)) codret
167 #ifdef _DEBUG_HOMARD_
168 write (ulsort,texte(langue,1)) 'Sortie', nompro