]> SALOME platform Git repositories - modules/homard.git/blob - src/tool/Information/initer.F
Salome HOME
Homard executable
[modules/homard.git] / src / tool / Information / initer.F
1       subroutine initer ( ulsort, langue, codret )
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
22 c   INformation : ITERation
23 c   --            ----
24 c   Cette ecriture sert au programme d'analyse.
25 c ______________________________________________________________________
26 c .        .     .        .                                            .
27 c .  nom   . e/s . taille .           description                      .
28 c .____________________________________________________________________.
29 c . ulsort . e   .   1    . numero d'unite logique de la liste standard.
30 c . langue . e   .    1   . langue des messages                        .
31 c .        .     .        . 1 : francais, 2 : anglais                  .
32 c . codret . es  .    1   . code de retour des modules                 .
33 c .        .     .        . 0 : pas de probleme                        .
34 c .        .     .        . 2 : probleme dans les memoires             .
35 c .        .     .        . 3 : probleme dans les fichiers             .
36 c .        .     .        . 5 : probleme autre                         .
37 c ______________________________________________________________________
38 c
39 c====
40 c 0. declarations et dimensionnement
41 c====
42 c
43 c 0.1. ==> generalites
44 c
45       implicit none
46       save
47 c
48       character*6 nompro
49       parameter ( nompro = 'INITER' )
50 c
51 #include "nblang.h"
52 #include "consts.h"
53 c
54 c 0.2. ==> communs
55 c
56 #include "envex1.h"
57 c
58 #include "envada.h"
59 c
60 c 0.3. ==> arguments
61 c
62       integer ulsort, langue, codret
63 c
64 c 0.4. ==> variables locales
65 c
66       integer iaux, jaux
67       integer nuroul, lnomfl
68 c
69       character*8 saux08
70       character*200 nomflo
71 c
72       integer nbmess
73       parameter ( nbmess = 10 )
74       character*80 texte(nblang,nbmess)
75 c
76 c 0.5. ==> initialisations
77 c ______________________________________________________________________
78 c
79 c====
80 c 1. messages
81 c====
82 c
83 #include "impr01.h"
84 c
85 #ifdef _DEBUG_HOMARD_
86       write (ulsort,texte(langue,1)) 'Entree', nompro
87       call dmflsh (iaux)
88 #endif
89 c
90       texte(1,4) = '(''Numero d''''iteration :'',i5)'
91 c
92       texte(2,4) = '(''Iteration number :'',i5)'
93 c
94 c====
95 c 2. recherche du numero d'unite logique lie au fichier
96 c====
97 c
98       saux08 = blan08
99       iaux = 9
100       jaux = -1
101       call utulbi ( nuroul, nomflo, lnomfl,
102      >                iaux, saux08, jaux, jaux,
103      >              ulsort, langue, codret )
104 c
105 c====
106 c 2. ecriture du numero d'iteration dans un fichier, si ce n'est
107 c     pas le standard
108 c====
109 c
110       if ( codret.eq.0 ) then
111 c
112       if ( nuroul.ne.ulsort ) then
113 c
114 c 2.1. ==> ecriture
115 c
116 #ifdef _DEBUG_HOMARD_
117         write (ulsort,texte(langue,4)) nbiter
118 #endif
119 c
120         write (nuroul,*) nbiter
121 c
122 c 2.2. ==> fermeture du fichier
123 c
124         call gufeul ( nuroul, codret )
125 c
126       endif
127 c
128       endif
129 c
130 c====
131 c 3. la fin
132 c====
133 c
134       if ( codret.ne.0 ) then
135 c
136 #include "envex2.h"
137 c
138       write (ulsort,texte(langue,1)) 'Sortie', nompro
139       write (ulsort,texte(langue,2)) codret
140 c
141       endif
142 c
143 #ifdef _DEBUG_HOMARD_
144       write (ulsort,texte(langue,1)) 'Sortie', nompro
145       call dmflsh (iaux)
146 #endif
147 c
148       end