OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_irbe3.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "tabsiz_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine w_irbe3 (irbe3, lrbe3, nodlocal, proc, llrbe3_l, itabrbe3m, nbddrbe3m, numnod_l, len_ia)

Function/Subroutine Documentation

◆ w_irbe3()

subroutine w_irbe3 ( integer, dimension(nrbe3l,*) irbe3,
integer, dimension(*) lrbe3,
integer, dimension(*) nodlocal,
integer proc,
integer llrbe3_l,
integer, dimension(*) itabrbe3m,
integer nbddrbe3m,
integer numnod_l,
integer len_ia )

Definition at line 31 of file w_irbe3.F.

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
integer function nlocal(n, p)
Definition ddtools.F:349
void write_i_c(int *w, int *len)