1 subroutine pccac2 ( nofonc, nnfonc,
2 > ulsort, langue, codret )
3 c ______________________________________________________________________
7 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c Version originale enregistree le 18 juin 1996 sous le numero 96036
10 c aupres des huissiers de justice Simart et Lavoir a Clamart
11 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
12 c aupres des huissiers de justice
13 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
15 c HOMARD est une marque deposee d'Electricite de France
21 c ______________________________________________________________________
23 c aPres adaptation - mise a jour des CAracteristiques des Champs - 2
25 c ______________________________________________________________________
27 c . nom . e/s . taille . description .
28 c .____________________________________________________________________.
29 c . nofonc . e . char8 . nom de la fonction a ajouter .
30 c . nnfonc . e . char8 . nom de la fonction associee .
31 c . adinch . s . 1 . adresse de l'information sur les champs .
32 c . adinpf . s . 1 . adresse de l'information sur les fonctions .
33 c . adinpr . s . 1 . adresse de l'information sur les profils .
34 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
35 c . langue . e . 1 . langue des messages .
36 c . . . . 1 : francais, 2 : anglais .
37 c . codret . es . 1 . code de retour des modules .
38 c . . . . 0 : pas de probleme .
39 c . . . . 1 : probleme .
40 c ______________________________________________________________________
43 c 0. declarations et dimensionnement
46 c 0.1. ==> generalites
52 parameter ( nompro = 'PCCAC2' )
67 integer ulsort, langue, codret
69 c 0.4. ==> variables locales
72 integer codre1, codre2
77 integer nbcomp, nbtvch, typcha
78 integer adnocp, adcaen, adcare, adcaca
80 character*8 nocham, saux08
83 parameter ( nbmess = 10 )
84 character*80 texte(nblang,nbmess)
86 c 0.5. ==> initialisations
87 c ______________________________________________________________________
98 write (ulsort,texte(langue,1)) 'Entree', nompro
102 texte(1,4) = '(''Nom de la fonction a ajouter : '',a8)'
103 texte(1,5) = '(''Nom de la fonction associee : '',a8)'
104 texte(1,6) = '(''..... Tableau'',i4,'' ==> Nom du champ : '',a)'
105 texte(1,7) = '(''..... Avant l''''ajout de la fonction :'')'
106 texte(1,8) = '(''..... Apres l''''ajout de la fonction :'')'
107 texte(1,9) = '(''Nombre de tableaux :'',i8)'
109 texte(2,4) = '(''Name of the function to add : '',a8)'
110 texte(2,5) = '(''Name of the associated function : '',a8)'
111 texte(2,6) = '(''..... Array'',i4,'' ==> Name of field : '',a)'
112 texte(2,7) = '(''..... Before the addition of function :'')'
113 texte(2,8) = '(''..... Following the addition of function :'')'
114 texte(2,9) = '(''Number of arrays :'',i8)'
116 #ifdef _DEBUG_HOMARD_
117 write (ulsort,texte(langue,4)) nofonc
118 call gmprsx (nompro, nofonc )
119 write (ulsort,texte(langue,5)) nnfonc
120 call gmprsx (nompro, nnfonc )
121 call gmprsx (nompro, nnfonc//'.InfoCham' )
125 c 2. mise a jour des caracteristiques du champ
128 c 2.1. ==> reperage des tableaux et des champs associes a cette fonction
130 if ( codret.eq.0 ) then
132 call gmliat ( nofonc, 7, nbtafo, codre1 )
133 call gmadoj ( nofonc//'.InfoCham', adobch, iaux, codre2 )
135 codre0 = min ( codre1, codre2 )
136 codret = max ( abs(codre0), codret,
141 #ifdef _DEBUG_HOMARD_
142 write (ulsort,texte(langue,9)) nbtafo
145 c 2.2. ==> enregistrement du champ associe a chaque tableau de
148 if ( codret.eq.0 ) then
153 do 22 , jaux = 1 , nbtafo
155 nocham = smem(adobch+jaux-1)
157 #ifdef _DEBUG_HOMARD_
158 write (ulsort,texte(langue,6)) jaux, nocham
161 if ( nocham.ne.saux08 ) then
163 #ifdef _DEBUG_HOMARD_
164 if ( codret.eq.0 ) then
165 write (ulsort,texte(langue,7))
166 call gmprsx (nompro, nocham )
167 call gmprsx (nompro, nocham//'.Cham_Ent' )
168 call gmprsx (nompro, nocham//'.Cham_Car' )
174 #ifdef _DEBUG_HOMARD_
175 write (ulsort,texte(langue,3)) 'UTMOCH', nompro
177 call utmoch ( nocham, iaux,
179 > nbcomp, nbtvch, typcha,
180 > adnocp, adcaen, adcare, adcaca,
181 > ulsort, langue, codret )
185 #ifdef _DEBUG_HOMARD_
186 if ( codret.eq.0 ) then
187 write (ulsort,texte(langue,8))
188 call gmprsx (nompro, nocham )
189 call gmprsx (nompro, nocham//'.Cham_Ent' )
190 call gmprsx (nompro, nocham//'.Cham_Car' )
204 if ( codret.ne.0 ) then
208 write (ulsort,texte(langue,1)) 'Sortie', nompro
209 write (ulsort,texte(langue,2)) codret
213 #ifdef _DEBUG_HOMARD_
214 write (ulsort,texte(langue,1)) 'Sortie', nompro