OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i2master.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23C
24!||====================================================================
25!|| i2main ../starter/source/interfaces/interf1/i2master.F
26!||--- called by ------------------------------------------------------
27!|| inint2 ../starter/source/interfaces/inter2d1/inint2.F
28!|| inint3 ../starter/source/interfaces/inter3d1/inint3.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE i2main(NSV,MSR,IRECTM,IPARI,
32 . TAG,MSRU,INTBUF_TAB)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE intbufdef_mod
37C-----------------------------------------------------------------------
38C recontruit MSR et IRECTM en fonction des main nodes utiles
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43#include "com01_c.inc"
44#include "com04_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER NSV(*), MSR(*), IRECTM(4,*), IPARI(*)
49 INTEGER TAG(*), MSRU(*)
50
51 TYPE(intbuf_struct_) INTBUF_TAB
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER NRTS, NRTM, NSN, NMN, NTY, I, J, NIR,
56 . k, m, nm, nmnu
57C-----------------------------------------------
58 nrts=ipari(3)
59 nrtm=ipari(4)
60 nsn =ipari(5)
61 nmn =ipari(6)
62 nty =ipari(7)
63 nmnu = 0
64C
65 DO i = 1, numnod
66 tag(i) = 0
67 ENDDO
68C
69 IF (n2d==0) THEN
70 nir = 4
71 ELSE
72 nir = 2
73 ENDIF
74C determination des main nodes reellement utilises
75 DO i = 1, nsn
76 j = intbuf_tab%IRTLM(i)
77 DO k = 1, nir
78 m = irectm(k,j)
79 IF (tag(m)==0) THEN
80 nmnu = nmnu + 1
81 tag(m) = nmnu
82 msru(nmnu) = msr(m)
83 ENDIF
84 ENDDO
85 ENDDO
86C mise a jour de MSR
87 DO i = 1, nmnu
88 msr(i) = msru(i)
89 ENDDO
90C mise a jour de irectm
91C---------------------------------------------------------------
92C LE NOEUD LOCAL EST REMPLACE PAR LE NOEUD GLOBAL DANS IRECT
93C---------------------------------------------------------------
94 DO i = 1, nrtm
95 DO k = 1, nir
96 m = irectm(k,i)
97 nm = tag(m)
98 IF (nm==0) THEN
99 irectm(k,i) = 1
100 ELSE
101CGW IRECTM(K,I) = NM
102 irectm(k,i) = msr(nm)
103 ENDIF
104 ENDDO
105 ENDDO
106C mise a jour de IPARI et offset de IRTLM
107 ipari(6) = nmnu
108C
109 RETURN
110 END
subroutine i2main(nsv, msr, irectm, ipari, tag, msru, intbuf_tab)
Definition i2master.F:33