1 subroutine decfs3 ( hettri, filtri,
6 > ulsort, langue, codret )
7 c ______________________________________________________________________
11 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
13 c Version originale enregistree le 18 juin 1996 sous le numero 96036
14 c aupres des huissiers de justice Simart et Lavoir a Clamart
15 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
16 c aupres des huissiers de justice
17 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
19 c HOMARD est une marque deposee d'Electricite de France
25 c ______________________________________________________________________
27 c traitement des DEcisions - mise en ConFormite - Suppression
30 c ______________________________________________________________________
31 c On parcourt toutes les entites qui sont decoupees par conformite :
32 c . on supprime la reference aux fils
33 c ______________________________________________________________________
35 c . nom . e/s . taille . description .
36 c .____________________________________________________________________.
37 c . hettri . e . nbtrto . historique de l'etat des triangles .
38 c . filtri . e . nbtrto . fils des triangles .
39 c . hetqua . e . nbquto . historique de l'etat des quadrangles .
40 c . filqua . e . nbquto . premier fils des quadrangles .
41 c . hettet . e . nbteto . historique de l'etat des tetraedres .
42 c . filtet . e . nbteto . premier fils des tetraedres .
43 c . hethex . e . nbheto . historique de l'etat des hexaedres .
44 c . filhex . e . nbheto . fils des hexaedres .
45 c . hetpen . e . nbpeto . historique de l'etat des pentaedres .
46 c . filpen . e . nbpeto . premier fils des pentaedres .
47 c . ulsort . e . 1 . unite logique de la sortie generale .
48 c . langue . e . 1 . langue des messages .
49 c . . . . 1 : francais, 2 : anglais .
50 c . codret . es . 1 . code de retour des modules .
51 c . . . . 0 : pas de probleme .
52 c . . . . sinon : nombre de tetraedres a problemes .
53 c ______________________________________________________________________
56 c 0. declarations et dimensionnement
59 c 0.1. ==> generalites
65 parameter ( nompro = 'DECFS3' )
82 integer hettri(nbtrto), filtri(nbtrto)
83 integer hetqua(nbquto), filqua(nbquto)
84 integer hettet(nbteto), filtet(nbteto)
85 integer hethex(nbheto), filhex(nbheto)
86 integer hetpen(nbpeto), filpen(nbpeto)
88 integer ulsort, langue, codret
90 c 0.4. ==> variables locales
96 parameter ( nbmess = 10 )
97 character*80 texte(nblang,nbmess)
99 c 0.5. ==> initialisations
100 c ______________________________________________________________________
108 #ifdef _DEBUG_HOMARD_
109 write (ulsort,texte(langue,1)) 'Entree', nompro
114 > '(''Suppression des fils de conformites pour les '',a)'
117 > '(''Suppression of the sons for the conformities for '',a)'
125 if ( nbtrto.ne.0 ) then
127 #ifdef _DEBUG_HOMARD_
128 write (ulsort,texte(langue,4)) mess14(langue,3,2)
131 cgn 1793 format('Etat du ',a,i10,' :',i4)
132 do 22 , iaux = 1 , nbtrto
134 etat = mod(hettri(iaux),10)
136 if ( etat.ge.1 .and. etat.le.3 ) then
137 cgn write (ulsort,1793) mess14(langue,1,2), iaux, etat
150 #ifdef _DEBUG_HOMARD_
151 write (ulsort,*) '3. Quadrangles ; codret = ', codret
154 if ( nbquto.ne.0 ) then
156 #ifdef _DEBUG_HOMARD_
157 write (ulsort,texte(langue,4)) mess14(langue,3,4)
160 do 32 , iaux = 1 , nbquto
162 etat = mod(hetqua(iaux),100)
164 if ( etat.eq.21 .or. etat.eq.22 .or.
165 > ( etat.ge.31 .and. etat.le.34 ) .or.
166 > ( etat.ge.41 .and. etat.le.44 ) ) then
167 cgn write (ulsort,1793) mess14(langue,1,4), iaux, etat
180 #ifdef _DEBUG_HOMARD_
181 write (ulsort,*) '4. Tetraedres ; codret = ', codret
184 if ( nbteto.ne.0 ) then
186 #ifdef _DEBUG_HOMARD_
187 write (ulsort,texte(langue,4)) mess14(langue,3,3)
190 do 42 , iaux = 1 , nbteto
192 etat = mod(hettet(iaux),100)
194 if ( ( etat.ge.21 .and. etat.le.36 ) .or.
195 > ( etat.ge.41 .and. etat.le.47 ) ) then
203 cgn write (ulsort,1790) (iaux,teindr(iaux),iaux = 1 , nbteto)
204 cgn 1790 format(5(i4,' :',g12.5))
210 #ifdef _DEBUG_HOMARD_
211 write (ulsort,*) '5. Hexaedres ; codret = ', codret
214 if ( nbheto.ne.0 ) then
216 #ifdef _DEBUG_HOMARD_
217 write (ulsort,texte(langue,4)) mess14(langue,3,6)
220 do 52 , iaux = 1 , nbheto
222 etat = mod(hethex(iaux),1000)
224 if ( etat.ge.11 ) then
237 #ifdef _DEBUG_HOMARD_
238 write (ulsort,*) '6. Pentaedres ; codret = ', codret
241 if ( nbpeto.ne.0 ) then
243 #ifdef _DEBUG_HOMARD_
244 write (ulsort,texte(langue,4)) mess14(langue,3,7)
247 do 62 , iaux = 1 , nbpeto
249 etat = mod(hetpen(iaux),100)
251 if ( ( etat.ge. 1 .and. etat.le. 6 ) .or.
252 > ( etat.ge.17 .and. etat.le.19 ) .or.
253 > ( etat.ge.21 .and. etat.le.26 ) .or.
254 > ( etat.ge.31 .and. etat.le.36 ) .or.
255 > ( etat.ge.43 .and. etat.le.45 ) .or.
256 > ( etat.ge.51 .and. etat.le.52 ) ) then
270 if ( codret.ne.0 ) then
274 write (ulsort,texte(langue,1)) 'Sortie', nompro
275 write (ulsort,texte(langue,2)) codret
276 write (ulsort,texte(langue,6)) codret
280 #ifdef _DEBUG_HOMARD_
281 write (ulsort,texte(langue,1)) 'Sortie', nompro