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

Go to the source code of this file.

Functions/Subroutines

subroutine w_rbymk (npby, lpby, front_rm, nodlocal, proc, nslarb_l, len_ia)

Function/Subroutine Documentation

◆ w_rbymk()

subroutine w_rbymk ( integer, dimension(nirbym,*) npby,
integer, dimension(*) lpby,
integer, dimension(nrbym,*) front_rm,
integer, dimension(*) nodlocal,
integer proc,
integer nslarb_l,
integer len_ia )

Definition at line 31 of file w_rbymk.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"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER PROC, LEN_IA, NSLARB_L, NODLOCAL(*),
48 . NPBY(NIRBYM,*), LPBY(*),
49 . FRONT_RM(NRBYM,*)
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 NSL, K, KK, N, NN, NSL_L, J, M, ILP,
59 . NPBY_L(NIRBYM,NRBYM), LPBY_L(NSLARB_L)
60 INTEGER, DIMENSION(:), ALLOCATABLE :: SECNDNG,INDEX,IWORK
61C
62 ilp = 0
63 k = 0
64 DO n = 1, nrbym
65 nsl=npby(2,n)
66 nsl_l = 0
67 DO kk = 1, nsl
68 nn = lpby(k+kk)
69 IF(nlocal(nn,proc+1)==1)THEN
70 nsl_l = nsl_l + 1
71 lpby_l(nsl_l+ilp) = nodlocal(nn)
72 ENDIF
73 ENDDO
74 npby_l(2,n) = nsl_l
75 m = npby(1,n)
76C optimisation pour ne pas traiter les rigid material inutiles
77 IF(nsl_l==0.AND.mod(front_rm(m,proc+1),10)==0)THEN
78 npby_l(1,n) = -m
79 ELSE
80 npby_l(1,n) = m
81 ENDIF
82 k = k + nsl
83 ilp = ilp + nsl_l
84 ENDDO
85C
86 CALL write_i_c(npby_l,nirbym*nrbym)
87 CALL write_i_c(lpby_l,nslarb_l)
88 len_ia = len_ia + nirbym*nrbym + nslarb_l
89C
90 RETURN
integer function nlocal(n, p)
Definition ddtools.F:349
void write_i_c(int *w, int *len)