]> SALOME platform Git repositories - modules/homard.git/blob - src/tool/Modification/mmcnp2.F
Salome HOME
Homard executable
[modules/homard.git] / src / tool / Modification / mmcnp2.F
1       subroutine mmcnp2 ( nomail, nhnoeu, nharet,
2      >                    indnoe,
3      >                    ulsort, langue, codret )
4 c ______________________________________________________________________
5 c
6 c                             H O M A R D
7 c
8 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c
10 c Version originale enregistree le 18 juin 1996 sous le numero 96036
11 c aupres des huissiers de justice Simart et Lavoir a Clamart
12 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
13 c aupres des huissiers de justice
14 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
15 c
16 c    HOMARD est une marque deposee d'Electricite de France
17 c
18 c Copyright EDF 1996
19 c Copyright EDF 1998
20 c Copyright EDF 2002
21 c Copyright EDF 2020
22 c ______________________________________________________________________
23 c
24 c  Modification de Maillage - DEGRe
25 c  -               -          ----
26 c ______________________________________________________________________
27 c .        .     .        .                                            .
28 c .  nom   . e/s . taille .           description                      .
29 c .____________________________________________________________________.
30 c . nomail . e   .  ch8   . nom de l'objet contenant le maillage       .
31 c . nhnoeu . e   .  ch8   . branche des noeuds dans le maillage        .
32 c . nharet . e   .  ch8   . branche des aretes dans le maillage        .
33 c . indnoe . es  . 1      . indice du dernier noeud cree               .
34 c . ulsort . e   .   1    . numero d'unite logique de la liste standard.
35 c . langue . e   .    1   . langue des messages                        .
36 c .        .     .        . 1 : francais, 2 : anglais                  .
37 c . codret . es  .    1   . code de retour des modules                 .
38 c .        .     .        . 0 : pas de probleme                        .
39 c .        .     .        . 1 : probleme                               .
40 c ______________________________________________________________________
41 c
42 c====
43 c 0. declarations et dimensionnement
44 c====
45 c
46 c 0.1. ==> generalites
47 c
48       implicit none
49       save
50 c
51       character*6 nompro
52       parameter ( nompro = 'MMCNP2' )
53 c
54 #include "nblang.h"
55 c
56 c 0.2. ==> communs
57 c
58 #include "envex1.h"
59 c
60 #include "gmenti.h"
61 c
62 #include "envca1.h"
63 c
64 #include "nombar.h"
65 #include "nombno.h"
66 #include "nouvnb.h"
67 c
68 c 0.3. ==> arguments
69 c
70       character*8 nomail
71       character*8 nhnoeu, nharet
72 c
73       integer indnoe
74 c
75       integer ulsort, langue, codret
76 c
77 c 0.4. ==> variables locales
78 c
79       integer codre0
80       integer codre1, codre2, codre3, codre4
81       integer phetno, pareno, pcoono
82       integer pfamno, pnp2ar
83       integer un
84       integer iaux, jaux
85 c
86       integer nbmess
87       parameter ( nbmess = 10 )
88       character*80 texte(nblang,nbmess)
89 c
90 c 0.5. ==> initialisations
91 c
92 #include "impr01.h"
93 c ______________________________________________________________________
94 c
95 c====
96 c 1. Reallocation des tableaux
97 c====
98 c
99       if ( codret.eq.0 ) then
100 c
101       un = 1
102 c
103       call gmmod ( nhnoeu//'.Coor',
104      >             pcoono, nbnoto, nouvno, sdim, sdim, codre1 )
105       call gmmod ( nhnoeu//'.HistEtat',
106      >             phetno, nbnoto, nouvno, un, un, codre2 )
107       call gmmod ( nhnoeu//'.AretSupp',
108      >             pareno, nbnoto, nouvno, un, un, codre3 )
109       call gmmod ( nhnoeu//'.Famille.EntiFamm',
110      >             pfamno, nbnoto, nouvno, un, un, codre4 )
111 c
112       codre0 = min ( codre1, codre2, codre3, codre4 )
113       codret = max ( abs(codre0), codret,
114      >               codre1, codre2, codre3, codre4 )
115 c
116       endif
117 c
118       if ( codret.eq.0 ) then
119 c
120       call gmaloj ( nharet//'.InfoSupp', ' ', nbarto, pnp2ar, codre0 )
121       codret = max ( abs(codre0), codret )
122 c
123       endif
124 c
125 c====
126 c 2. creation des noeuds
127 c====
128 c
129       if ( codret.eq.0 ) then
130 c
131       jaux = pnp2ar + nbarto - 1
132       do 21 , iaux = pnp2ar , jaux
133         imem(iaux) = 0
134    21 continue
135 c
136 #ifdef _DEBUG_HOMARD_
137       write (ulsort,texte(langue,3)) 'CMNO22', nompro
138 #endif
139       call cmno22 ( nomail,
140      >              indnoe, 1, nouvar,
141      >              ulsort, langue, codret )
142 c
143       endif
144 c
145 c====
146 c 3. la fin
147 c====
148 c
149       if ( codret.ne.0 ) then
150 c
151 #include "envex2.h"
152 c
153       write (ulsort,texte(langue,1)) 'Sortie', nompro
154       write (ulsort,texte(langue,2)) codret
155 c
156       endif
157 c
158 #ifdef _DEBUG_HOMARD_
159       write (ulsort,texte(langue,1)) 'Sortie', nompro
160       call dmflsh (iaux)
161 #endif
162 c
163       end