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

Go to the source code of this file.

Functions/Subroutines

subroutine c_rwall (nprw, lprw, rwl, cep, proc, nslaw_l, neslaw_l, lwsav_l, nskyrw_l, lrw_pen_l, nrw_pen_l)

Function/Subroutine Documentation

◆ c_rwall()

subroutine c_rwall ( integer, dimension(*) nprw,
integer, dimension(*) lprw,
rwl,
integer, dimension(*) cep,
integer proc,
integer nslaw_l,
integer neslaw_l,
integer lwsav_l,
integer nskyrw_l,
integer, intent(inout) lrw_pen_l,
integer, intent(inout) nrw_pen_l )

Definition at line 31 of file c_rwall.F.

34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "com01_c.inc"
46#include "com04_c.inc"
47#include "param_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER PROC, NSLAW_L, NESLAW_L, LWSAV_L,
52 . NSKYRW_L,
53 . LPRW(*), NPRW(*),
54 . CEP(*)
55 INTEGER, INTENT(INOUT) :: LRW_PEN_L, NRW_PEN_L
57 . rwl(nrwlp,*)
58C-----------------------------------------------
59C F u n c t i o n
60C-----------------------------------------------
61 INTEGER NLOCAL
62 EXTERNAL nlocal
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER NSL, K, KK, N, NN, N2, N3, N4, IE, NE, ITY,
67 . NSL_L, IFQ, MSR,IPEN
68C
69 nslaw_l = 0
70 nskyrw_l= 0
71 neslaw_l= 0
72 lwsav_l = 0
73 lrw_pen_l = 0
74 nrw_pen_l = 0
75 k = 0
76 DO n = 1, nrwall
77 n2=n +nrwall
78 n3=n2+nrwall
79 n4=n3+nrwall
80 nsl=nprw(n)
81 msr = nprw(n3)
82 ity=nprw(n4)
83 ipen = nprw(n + 8*nrwall)
84 nsl_l=0
85 DO kk = 1, nsl
86 nn = lprw(k+kk)
87 IF(nlocal(nn,proc+1)==1)THEN
88 nsl_l = nsl_l + 1
89 ENDIF
90 ENDDO
91 nslaw_l = nslaw_l + nsl_l
92 IF (ipen/=0) THEN
93 lrw_pen_l = lrw_pen_l + nsl_l
94 IF (nsl_l>0) nrw_pen_l = nrw_pen_l + 1
95 ENDIF
96C memory space p/we
97 IF(ipari0/=0.AND.msr/=0) nskyrw_l = nskyrw_l + nsl_l
98 k = k + nsl
99C
100 ifq = nint(rwl(15,n))
101 IF(ifq>0) THEN
102 lwsav_l = lwsav_l + nsl_l
103 ENDIF
104C
105 IF(ity==-1)THEN
106 ne = nint(rwl(8,n))
107 IF(ne/=0) THEN
108 DO kk = 1, ne
109 ie = lprw(k+kk)/10
110C IR = LPRW(K+KK)-10*IE
111 IF(cep(ie)==proc)THEN
112 neslaw_l = neslaw_l+1
113 ENDIF
114 ENDDO
115 k = k + ne
116 ENDIF
117 ENDIF
118 ENDDO
119C
120 RETURN
#define my_real
Definition cppsort.cpp:32
integer function nlocal(n, p)
Definition ddtools.F:350