OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_irbe3.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_irbe3 ../starter/source/restart/ddsplit/w_irbe3.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_irbe3(IRBE3 ,LRBE3 ,NODLOCAL ,PROC ,
32 . LLRBE3_L,ITABRBE3M,NBDDRBE3M,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"
45#include "tabsiz_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER PROC, LLRBE3_L, LEN_IA,ITABRBE3M(*),NBDDRBE3M,NUMNOD_L,
50 . irbe3(nrbe3l,*), lrbe3(*), nodlocal(*)
51C-----------------------------------------------
52C F u n c t i o n
53C-----------------------------------------------
54 INTEGER NLOCAL
55 EXTERNAL nlocal
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I, J, K, KL, NSNL, NSN, ILP, NLL, NN, M, N,
60 . ibvtmp(nrbe3l,nrbe3), lbvtmp(2*llrbe3_l),iad
61C
62 kl=0
63 nsnl = 0
64 DO i = 1, nrbe3
65 k = irbe3(1,i)
66 m = irbe3(3,i)
67 nsn = irbe3(5,i)
68 iad = nsnl
69 ilp = 0
70 DO j = 1, nsn
71 n = lrbe3(k+j)
72 IF (nlocal(n,proc+1)==1)THEN
73 ilp = ilp + 1
74 nsnl = nsnl + 1
75 lbvtmp(nsnl) = nodlocal(n)
76 lbvtmp(nsnl+llrbe3_l) = lrbe3(k+j+slrbe3/2)
77 ENDIF
78 ENDDO
79 IF (nlocal(m,proc+1)==1.OR.ilp>0)THEN
80 kl = kl + 1
81 DO j = 1, nrbe3l
82 ibvtmp(j,kl) = irbe3(j,i)
83 ENDDO
84 ibvtmp(1,kl) = iad
85 ibvtmp(5,kl) = nsnl-iad
86 IF (nlocal(m,proc+1)==1.AND.ibvtmp(5,kl)>0)THEN
87 ibvtmp(3,kl) = nodlocal(m)
88 ELSE
89 ibvtmp(3,kl) = 0
90 ENDIF
91C SPMD issue global RBE2 Number
92 ibvtmp(10,kl) = i
93 ENDIF
94 ENDDO
95C
96 CALL write_i_c(ibvtmp,nrbe3l*kl)
97 CALL write_i_c(lbvtmp,llrbe3_l*2)
98 len_ia = len_ia + nrbe3l*kl + llrbe3_l*2
99C
100 IF(nbddrbe3m>0) THEN
101 DO i = 1, numnod_l
102 itabrbe3m(i) = 0
103 ENDDO
104 ilp=0
105 DO k = 1, nsnl
106 n = lbvtmp(k)
107 IF(itabrbe3m(n)==0) THEN
108 ilp = ilp + 1
109 itabrbe3m(n) = ilp
110 ENDIF
111 END DO
112 ENDIF
113C
114 RETURN
115 END
subroutine w_irbe3(irbe3, lrbe3, nodlocal, proc, llrbe3_l, itabrbe3m, nbddrbe3m, numnod_l, len_ia)
Definition w_irbe3.F:33
void write_i_c(int *w, int *len)