OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_irbe2.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!|| w_irbe2 ../starter/source/restart/ddsplit/w_irbe2.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| nlocal ../starter/source/spmd/node/ddtools.F
30!||====================================================================
31 SUBROUTINE w_irbe2(IRBE2 ,LRBE2 ,NODLOCAL ,PROC ,
32 . LLRBE2_L,ITABRBE2M,NBDDRBE2,NUMNOD_L,LEN_IA )
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com04_c.inc"
44#include "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER PROC, LLRBE2_L, LEN_IA,NBDDRBE2,NUMNOD_L,ITABRBE2M(*),
49 . irbe2(nrbe2l,*), lrbe2(*), nodlocal(*)
50C-----------------------------------------------
51C F u n c t i o n
52C-----------------------------------------------
53 INTEGER NLOCAL
54 EXTERNAL nlocal
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I, J, K, KL, NSNL, NSN, ILP, NLL, NN, M, N,
59 . ibvtmp(nrbe2l,nrbe2), lbvtmp(llrbe2_l),iad,ii
60
61C-----------------------------------------------
62C
63 kl=0
64 nsnl = 0
65 ii = 0
66 DO i = 1, nrbe2
67 k = irbe2(1,i)
68 m = irbe2(3,i)
69 nsn = irbe2(5,i)
70 iad = nsnl
71 IF (nsn > 0) ii = ii +1
72 IF (nsn ==0) cycle
73 DO j = 1, nsn
74 n = lrbe2(k+j)
75 IF (nlocal(n,proc+1)==1)THEN
76 nsnl = nsnl + 1
77 lbvtmp(nsnl) = nodlocal(n)
78 ENDIF
79 ENDDO
80 IF (nlocal(m,proc+1)==1)THEN
81 kl = kl + 1
82 DO j = 1, nrbe2l
83 ibvtmp(j,kl) = irbe2(j,i)
84 ENDDO
85 ibvtmp(1,kl) = iad
86 ibvtmp(5,kl) = nsnl-iad
87 ibvtmp(3,kl) = nodlocal(m)
88C SPMD issue global RBE2 Number
89 ibvtmp(10,kl) = ii
90 ibvtmp(12,kl) = nsn
91C----------IBVTMP(6,KL)-set in engine------------------------------------
92 ENDIF
93 ENDDO
94C----------------
95 CALL write_i_c(ibvtmp,nrbe2l*kl)
96 CALL write_i_c(lbvtmp,llrbe2_l)
97 len_ia = len_ia + nrbe2l*kl + llrbe2_l
98C
99 IF(nbddrbe2>0) THEN
100 itabrbe2m(1:numnod_l) = 0
101 ilp=0
102 DO k = 1, kl
103 n = ibvtmp(3,k)
104 IF(itabrbe2m(n)==0) THEN
105 ilp = ilp + 1
106c ITABRBE2M(N) = ILP
107 itabrbe2m(n) = n
108 ENDIF
109 END DO
110 ENDIF
111C
112 RETURN
113 END
subroutine w_irbe2(irbe2, lrbe2, nodlocal, proc, llrbe2_l, itabrbe2m, nbddrbe2, numnod_l, len_ia)
Definition w_irbe2.F:33
void write_i_c(int *w, int *len)