Salome HOME
Homard executable
[modules/homard.git] / src / tool / Gestion_MTU / gustat.F
1       subroutine gustat ( gunmbr )
2 c ______________________________________________________________________
3 c
4 c                             H O M A R D
5 c
6 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
7 c
8 c Version originale enregistree le 18 juin 1996 sous le numero 96036
9 c aupres des huissiers de justice Simart et Lavoir a Clamart
10 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
11 c aupres des huissiers de justice
12 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
13 c
14 c    HOMARD est une marque deposee d'Electricite de France
15 c
16 c Copyright EDF 1996
17 c Copyright EDF 1998
18 c Copyright EDF 2002
19 c Copyright EDF 2020
20 c ______________________________________________________________________
21 c but : etablit les statistiques relatives a la gestion des unites
22 c       logiques
23 c ______________________________________________________________________
24 c .        .     .        .                                            .
25 c .  nom   . e/s . taille .           description                      .
26 c .____________________________________________________________________.
27 c . gunmbr . e   .   *    . les nombres caracteristiques de la gestion .
28 c .        .     .        .(1): nb maxi d'unites ouvertes form/sequ    .
29 c .        .     .        .(2): nb maxi d'unites ouvertes bina/sequ    .
30 c .        .     .        .(3): nb maxi d'unites ouvertes bina/dire sta.
31 c .        .     .        .(4): nb maxi d'unites ouvertes bina/dire spe.
32 c .        .     .        .(5): nb total d'unites ouvertes form/sequ   .
33 c .        .     .        .(6): nb total d'unites ouvertes bina/sequ   .
34 c .        .     .        .(7): nb total d'unites ouvertes bina/dire st.
35 c .        .     .        .(8): nb total d'unites ouvertes bina/dire sp.
36 c .        .     .        .(9): nb actuel d'unites ouvertes form/sequ  .
37 c .        .     .        .(10): nb actuel d'unites ouvertes bina/sequ .
38 c .        .     .        .(11): nb actuel d'unites ouvertes bina/dire .
39 c .        .     .        .(12): nb actuel d'unites ouvertes bina/dire .
40 c .        .     .        .(13): nb maxi d'unites ouvertes tous types  .
41 c .        .     .        .(14): numero de l'entree standard           .
42 c .        .     .        .(15): numero de la sortie standard          .
43 c .        .     .        .(16): numero de l'unite des messages du gu  .
44 c .        .     .        .(17): langue des messages du gu             .
45 c ______________________________________________________________________
46 c
47 c====
48 c 0. declarations et dimensionnement
49 c====
50 c
51 c 0.1. ==> generalites
52 c
53       implicit none
54       save
55 c
56 #ifdef _DEBUG_HOMARD_
57       character*6 nompro
58       parameter ( nompro = 'GUSTAT' )
59 #endif
60 c
61 #include "gulggt.h"
62 #ifdef _DEBUG_HOMARD_
63 #include "genbla.h"
64 #include "gunbul.h"
65 #endif
66 c
67 c 0.2. ==> communs
68 c
69 c 0.3. ==> arguments
70 c
71       integer gunmbr(lgunmb)
72 c
73 c 0.4. ==> variables locales
74 c
75       integer iaux
76 c
77 #ifdef _DEBUG_HOMARD_
78 c
79       integer ulsort
80       integer nbmess
81       parameter ( nbmess = 10 )
82       character*80 texte(nblang,nbmess)
83 c
84       character*31 chstat(nblang,5)
85 c
86       integer langue
87 #endif
88 c
89 c 0.5. ==> initialisations
90 c ______________________________________________________________________
91 c
92 c====
93 c 1. messages
94 c====
95 c
96 #ifdef _DEBUG_HOMARD_
97       ulsort = gunmbr(16)
98       langue = gunmbr(17)
99 #endif
100 c
101 #ifdef _DEBUG_HOMARD_
102 #include "impr01.h"
103 #endif
104 c
105 #ifdef _DEBUG_HOMARD_
106       write (ulsort,texte(langue,1)) 'Entree', nompro
107       call dmflsh (iaux)
108 #endif
109 c
110 #ifdef _DEBUG_HOMARD_
111 c
112       chstat(1,1) = 'Formate, acces sequentiel      '
113       chstat(1,2) = 'Binaire, acces sequentiel      '
114       chstat(1,3) = 'Binaire, acces direct standard '
115       chstat(1,4) = 'Binaire, acces direct special  '
116       chstat(1,5) = 'Tous types confondus           '
117 c
118       chstat(2,1) = 'Formatted, sequential access   '
119       chstat(2,2) = 'Binary, sequential access      '
120       chstat(2,3) = 'Binary, standard direct access '
121       chstat(2,4) = 'Binary, special direct access  '
122       chstat(2,5) = 'All kinds of files             '
123 c
124       texte(1,4) =
125      > '('':'',22x,''Unites logiques employees'',22x,'':'')'
126       texte(1,5) =
127      > '('':'',20x,''Type'',19x,'':   Nombre   :   Nombre   :'')'
128       texte(1,6) =
129      > '('':'',43x             ,'':   maximum  :   cumule   :'')'
130 c
131       texte(2,4) =
132      > '('':'',26x,''Used logical units'',25x,'':'')'
133       texte(2,5) =
134      > '('':'',20x,''Type'',19x,'':  Maximum   : Accumulated:'')'
135       texte(2,6) =
136      > '('':'',43x             ,'':   number   :   number   :'')'
137 c
138 c===
139 c 2. impressions
140 c===
141 c
142       write (ulsort,21001)
143 c
144       write (ulsort,21002)
145       write (ulsort,texte(langue,4))
146       write (ulsort,21003)
147       write (ulsort,texte(langue,5))
148       write (ulsort,texte(langue,6))
149       write (ulsort,21003)
150 c
151       do 2 , iaux = 1 , 4
152          write (ulsort,21004) chstat(langue,iaux),
153      >                        gunmbr(iaux), gunmbr(iaux+4)
154     2 continue
155 c
156       iaux = gunmbr(5) + gunmbr(6) + gunmbr(7) + gunmbr(8)
157       write (ulsort,21003)
158       write (ulsort,21004) chstat(langue,5), gunmbr(13), iaux
159       write (ulsort,21003)
160 c
161 21001 format(////)
162 21002 format(71('.'))
163 21003 format(':',69('.'),':')
164 21004 format(': ',a31,11x,':',i7,5x,':',i7,5x,':')
165 c
166 #endif
167 c
168       call dmflsh (iaux)
169 c
170       end