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

Go to the source code of this file.

Functions/Subroutines

subroutine c_irbe3 (irbe3, lrbe3, nskyrbe3_l, proc, nrbe3_l, slmn_l, nbddrbe3m, nrbe3pen_l)

Function/Subroutine Documentation

◆ c_irbe3()

subroutine c_irbe3 ( integer, dimension(nrbe3l,*) irbe3,
integer, dimension(*) lrbe3,
integer nskyrbe3_l,
integer proc,
integer nrbe3_l,
integer slmn_l,
integer nbddrbe3m,
integer, intent(inout) nrbe3pen_l )

Definition at line 30 of file c_irbe3.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com01_c.inc"
40#include "com04_c.inc"
41#include "param_c.inc"
42#include "tabsiz_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER PROC, NSKYRBE3_L,NRBE3_L,SLMN_L,NBDDRBE3M,
47 . IRBE3(NRBE3L,*), LRBE3(*)
48 INTEGER, INTENT(INOUT) :: NRBE3PEN_L
49C-----------------------------------------------
50C F u n c t i o n
51C-----------------------------------------------
52 INTEGER NLOCAL
53 EXTERNAL nlocal
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I, J, K, NSN, ILP, N,P,M,IPEN
58 INTEGER, DIMENSION(:), ALLOCATABLE :: TAGI
59C-----------------------------------------------
60! allocate 1d array
61 ALLOCATE( tagi(numnod) )
62! ----------------------------
63C
64 slmn_l = 0
65 nrbe3pen_l =0
66 DO i = 1, nrbe3
67 nsn = irbe3(5,i)
68 k = irbe3(1,i)
69 m = irbe3(3,i)
70 ipen = irbe3(9,i)
71 ilp = 0
72 DO j = 1, nsn
73 n = lrbe3(k+j)
74 IF (nlocal(n,proc+1)==1)THEN
75 ilp = ilp + 1
76 ENDIF
77 ENDDO
78C--------------pour exchange,meme sans node secnd----
79 IF (nlocal(m,proc+1)==1.OR.ilp>0)THEN
80 nrbe3_l = nrbe3_l+1
81 IF (ipen>0) nrbe3pen_l = nrbe3pen_l+1
82 END IF
83 slmn_l = slmn_l + ilp
84 ENDDO
85C
86 IF(ipari0/=0) nskyrbe3_l = slmn_l*0
87C-------------pour main nodes---------
88 DO i = 1, numnod
89 tagi(i) = 0
90 END DO
91 DO i = 1, slrbe3/2
92 n = lrbe3(i)
93 IF(nlocal(n,proc+1)==1) THEN
94 IF(tagi(n)==0) THEN
95C decompte des frontieres de main nodes
96 DO p = 1, nspmd
97 IF(nlocal(n,p)==1)THEN
98 nbddrbe3m = nbddrbe3m + 1
99 END IF
100 END DO
101C on ne se compte pas soi-meme
102 nbddrbe3m = nbddrbe3m - 1
103C pour ne pas prendre en compte 2 fois des noeuds main de RBE3 differentes ds les frontieres
104 tagi(n) = 1
105 END IF
106 ENDIF
107 END DO
108C
109! ----------------------------
110! deallocate 1d array
111 DEALLOCATE( tagi )
112! ----------------------------
113 RETURN
integer function nlocal(n, p)
Definition ddtools.F:349