]> SALOME platform Git repositories - modules/homard.git/blob - src/tool/ES_HOMARD/esecfe.F
Salome HOME
Merge branch 'V9_13_BR'
[modules/homard.git] / src / tool / ES_HOMARD / esecfe.F
1       subroutine esecfe ( idfmed, nomamd,
2      >                    nhnoeu, nhmapo, nharet, nhtria, nhquad,
3      >                    nhtetr, nhhexa, nhpyra, nhpent,
4      >                    numfam,
5      >                    tbiaux,
6      >                    ulsort, langue, codret)
7 c
8 c ______________________________________________________________________
9 c
10 c                             H O M A R D
11 c
12 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
13 c
14 c Version originale enregistree le 18 juin 1996 sous le numero 96036
15 c aupres des huissiers de justice Simart et Lavoir a Clamart
16 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
17 c aupres des huissiers de justice
18 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
19 c
20 c    HOMARD est une marque deposee d'Electricite de France
21 c
22 c Copyright EDF 1996
23 c Copyright EDF 1998
24 c Copyright EDF 2002
25 c Copyright EDF 2020
26 c ______________________________________________________________________
27 c
28 c  Entree-Sortie : ECriture des Familles des Entites
29 c  -      -        --           -            -
30 c ______________________________________________________________________
31 c .  nom   . e/s . taille .           description                      .
32 c .____________________________________________________________________.
33 c . idfmed . e   .   1    . identificateur du fichier MED              .
34 c . nomamd . e   . char64 . nom du maillage MED voulu                  .
35 c . numfam .  s  .   1    . plus petit numero de famille               .
36 c . tbiaux .     .    *   . tableau tampon entier                      .
37 c . ulsort . e   .   1    . numero d'unite logique de la liste standard.
38 c . langue . e   .    1   . langue des messages                        .
39 c .        .     .        . 1 : francais, 2 : anglais                  .
40 c . codret . es  .    1   . code de retour des modules                 .
41 c .        .     .        . 0 : pas de probleme                        .
42 c ______________________________________________________________________
43 c
44 c====
45 c 0. declarations et dimensionnement
46 c====
47 c
48 c 0.1. ==> generalites
49 c
50       implicit none
51       save
52 c
53       character*6 nompro
54       parameter ( nompro = 'ESECFE' )
55 c
56 #include "nblang.h"
57 #include "consts.h"
58 c
59 c 0.2. ==> communs
60 c
61 #include "envex1.h"
62 #include "nbfami.h"
63 #include "impr02.h"
64 c
65 c 0.3. ==> arguments
66 c
67       integer*8 idfmed
68       integer tbiaux(*)
69       integer numfam
70 c
71       character*8 nhnoeu, nhmapo, nharet, nhtria, nhquad
72       character*8 nhtetr, nhhexa, nhpyra, nhpent
73       character*64 nomamd
74 c
75       integer ulsort, langue, codret
76 c
77 c 0.4. ==> variables locales
78 c
79 #include "meddc0.h"
80 c
81       integer iaux, jaux
82       integer typenh
83 c
84       character*8 nhenti
85 c
86       integer nbmess
87       parameter ( nbmess = 150 )
88       character*80 texte(nblang,nbmess)
89 c ______________________________________________________________________
90 c
91 c====
92 c 1. messages
93 c====
94 c
95 #include "impr01.h"
96 c
97 #ifdef _DEBUG_HOMARD_
98       write (ulsort,texte(langue,1)) 'Entree', nompro
99       call dmflsh (iaux)
100 #endif
101 c
102       texte(1,4) = '(''. Ecriture des familles'')'
103 c
104       texte(2,4) = '(''. Writings of families'')'
105 c
106  1000 format('... ',a,' : ',i8)
107 c
108 #include "esimpr.h"
109 c
110 #ifdef _DEBUG_HOMARD_
111       write (ulsort,texte(langue,4))
112 #endif
113 c
114 c====
115 c 2. Ecriture type par type
116 c====
117 c
118       do 21 , typenh = -1 , 7
119 c
120         if ( codret.eq.0 ) then
121 c
122         if ( typenh.eq.-1 ) then
123           nhenti = nhnoeu
124           iaux = nbfnoe
125           numfam = 0
126         elseif ( typenh.eq.0 ) then
127           nhenti = nhmapo
128           iaux = nbfmpo
129           numfam = 0
130         elseif ( typenh.eq.1 ) then
131           nhenti = nharet
132           iaux = nbfare
133         elseif ( typenh.eq.2 ) then
134           nhenti = nhtria
135           iaux = nbftri
136        elseif ( typenh.eq.3 ) then
137           nhenti = nhtetr
138           iaux = nbftet
139         elseif ( typenh.eq.4 ) then
140           nhenti = nhquad
141           iaux = nbfqua
142         elseif ( typenh.eq.5 ) then
143           nhenti = nhpyra
144           iaux = nbfpyr
145         elseif ( typenh.eq.6 ) then
146           nhenti = nhhexa
147           iaux = nbfhex
148         else
149           nhenti = nhpent
150           iaux = nbfpen
151         endif
152 c
153         if ( iaux.gt.0 ) then
154 c
155 #ifdef _DEBUG_HOMARD_
156           write (ulsort,*) ' '
157           write (ulsort,*) mess14(langue,4,typenh)
158           write (ulsort,1000) 'nbfent', iaux
159 #endif
160 c
161           jaux = typenh
162 #ifdef _DEBUG_HOMARD_
163         write (ulsort,texte(langue,3)) 'ESECF0', nompro
164 #endif
165           call esecf0 ( idfmed, nomamd,
166      >                  jaux, iaux, numfam, nhenti,
167      >                  tbiaux,
168      >                  ulsort, langue, codret )
169 c
170         endif
171 c
172         endif
173 c
174    21 continue
175 c
176 c====
177 c 3. la fin
178 c====
179 c
180       if ( codret.ne.0 ) then
181 c
182 #include "envex2.h"
183 c
184       write (ulsort,texte(langue,1)) 'Sortie', nompro
185       write (ulsort,texte(langue,2)) codret
186 c
187       endif
188 c
189 #ifdef _DEBUG_HOMARD_
190       write (ulsort,texte(langue,1)) 'Sortie', nompro
191       call dmflsh (iaux)
192 #endif
193 c
194       end