1 subroutine utcaso ( nocsol,
2 > nbcham, nbpafo, nbprof, nblopg,
3 > adinch, adinpf, adinpr, adinlg,
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'une SOlution
27 c ______________________________________________________________________
29 c . nom . e/s . taille . description .
30 c .____________________________________________________________________.
31 c . nocsol . e . char8 . nom de l'objet solution .
32 c . nbcham . s . 1 . nombre de champs associes .
33 c . nbpafo . s . 1 . nombre d'inf. sur les paquets de fonctions .
34 c . nbprof . s . 1 . nombre de profils associes .
35 c . nblopg . s . 1 . nombre de localisations de points de Gauss .
36 c . adinch . s . 1 . adresse de l'information sur les champs .
37 c . adinpf . s . 1 . adresse de l'inf. sur paquets de fonctions .
38 c . adinpr . s . 1 . adresse de l'information sur les profils .
39 c . adinlg . s . 1 . adresse de l'information sur les .
40 c . . . . localisations de points de Gauss .
41 c . ulsort . e . 1 . numero d'unite logique de la liste standard.
42 c . langue . e . 1 . langue des messages .
43 c . . . . 1 : francais, 2 : anglais .
44 c . codret . es . 1 . code de retour des modules .
45 c . . . . 0 : pas de probleme .
46 c . . . . 1 : probleme .
47 c ______________________________________________________________________
50 c 0. declarations et dimensionnement
53 c 0.1. ==> generalites
59 parameter ( nompro = 'UTCASO' )
71 integer nbcham, nbpafo, nbprof, nblopg
72 integer adinch, adinpf, adinpr, adinlg
74 integer ulsort, langue, codret
76 c 0.4. ==> variables locales
79 integer codre1, codre2, codre3, codre4
85 parameter ( nbmess = 10 )
86 character*80 texte(nblang,nbmess)
88 c 0.5. ==> initialisations
89 c ______________________________________________________________________
100 write (ulsort,texte(langue,1)) 'Entree', nompro
104 texte(1,4) = '(''Erreur en recuperant '',a)'
106 texte(2,4) = '(''Error while getting '',a)'
108 #ifdef _DEBUG_HOMARD_
109 call gmprsx (nompro, nocsol )
110 call gmprsx (nompro, nocsol//'.InfoCham' )
111 call gmprsx (nompro, nocsol//'.InfoPaFo' )
112 call gmprsx (nompro, nocsol//'.InfoProf' )
113 call gmprsx (nompro, nocsol//'.InfoLoPG' )
117 c 2. caracteristiques de la solution
120 c 2.1. ==> les nombres caracteristiques
122 if ( codret.eq.0 ) then
124 call gmliat ( nocsol, 1, nbcham, codre1 )
125 call gmliat ( nocsol, 2, nbpafo, codre2 )
126 call gmliat ( nocsol, 3, nbprof, codre3 )
127 call gmliat ( nocsol, 4, nblopg, codre4 )
129 codre0 = min ( codre1, codre2, codre3, codre4 )
130 codret = max ( abs(codre0), codret,
131 > codre1, codre2, codre3, codre4 )
133 if ( codret.ne.0 ) then
139 c 2.2. ==> l'information sur les champs
141 if ( codret.eq.0 ) then
143 if ( nbcham.gt.0 ) then
145 call gmadoj ( nocsol//'.InfoCham', adinch, iaux, codret )
146 if ( codret.ne.0 ) then
154 c 2.3. ==> l'information sur les paquets de fonctions
156 if ( codret.eq.0 ) then
158 if ( nbpafo.gt.0 ) then
160 call gmadoj ( nocsol//'.InfoPaFo', adinpf, iaux, codret )
161 if ( codret.ne.0 ) then
169 c 2.4. ==> l'information sur les profils
171 if ( codret.eq.0 ) then
173 if ( nbprof.gt.0 ) then
175 call gmadoj ( nocsol//'.InfoProf', adinpr, iaux, codret )
176 if ( codret.ne.0 ) then
184 c 2.5. ==> les localisations de points de Gauss
186 if ( codret.eq.0 ) then
188 if ( nblopg.ne.0 ) then
189 call gmadoj ( nocsol//'.InfoLoPG', adinlg, iaux, codret )
190 if ( codret.ne.0 ) then
201 if ( codret.ne.0 ) then
205 write (ulsort,texte(langue,1)) 'Sortie', nompro
206 write (ulsort,texte(langue,2)) codret
207 write (ulsort,texte(langue,4)) saux08
211 #ifdef _DEBUG_HOMARD_
212 write (ulsort,texte(langue,1)) 'Sortie', nompro