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

Go to the source code of this file.

Functions/Subroutines

subroutine w_rwall (nprw, lprw, rwl, cep, cel, nodlocal, proc, nslaw_l, neslaw_l, numnod_l, len_ia)

Function/Subroutine Documentation

◆ w_rwall()

subroutine w_rwall ( integer, dimension(*) nprw,
integer, dimension(*) lprw,
rwl,
integer, dimension(*) cep,
integer, dimension(*) cel,
integer, dimension(*) nodlocal,
integer proc,
integer nslaw_l,
integer neslaw_l,
integer numnod_l,
integer len_ia )

Definition at line 31 of file w_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 "com04_c.inc"
46#include "param_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER PROC, LEN_IA, NSLAW_L, NESLAW_L, NUMNOD_L,
51 . LPRW(*), NPRW(*),
52 . CEP(*), CEL(*), NODLOCAL(*)
54 . rwl(nrwlp,*)
55C-----------------------------------------------
56C F u n c t i o n
57C-----------------------------------------------
58 INTEGER NLOCAL
59 EXTERNAL nlocal
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER NSL, I, K, KK, N, NN, N1, N2, N3, N4, IE, NE, ITY, ILW,
64 . ILP, NSL_L, NE_L, IR, MSR
65 INTEGER, DIMENSION(:),ALLOCATABLE :: LPRW_L, NPRW_L
66C
67 IF(nrwall>0) THEN
68 ALLOCATE(nprw_l(nnprw*nrwall))
69 DO n = 1, nrwall
70 nprw_l(n) = 0
71 DO kk = 1, nnprw-1
72 nprw_l(kk*nrwall+n) = nprw(kk*nrwall+n)
73 ENDDO
74 n3 = 2*nrwall+n
75 msr = nprw(n3)
76 IF(msr/=0) THEN
77 IF(nlocal(msr,proc+1)==1) THEN
78 nprw_l(n3) = nodlocal(msr)
79 ELSE
80C noeud non present sur le proc, MSR a 0 pour eviter les comms.
81 nprw_l(n3) = 0
82 ENDIF
83 ENDIF
84 ENDDO
85C
86 IF(nslaw_l+neslaw_l>0) THEN
87 ALLOCATE(lprw_l(nslaw_l+neslaw_l))
88 k = 0
89 ilp = 0
90 DO n = 1, nrwall
91 n2=n +nrwall
92 n3=n2+nrwall
93 n4=n3+nrwall
94 nsl=nprw(n)
95 ity=nprw(n4)
96 nsl_l = 0
97 DO kk = 1, nsl
98 nn = lprw(k+kk)
99 IF(nlocal(nn,proc+1)==1)THEN
100 nsl_l = nsl_l + 1
101 lprw_l(ilp+nsl_l) = nodlocal(nn)
102 ENDIF
103 ENDDO
104 ilp = ilp + nsl_l
105 k = k + nsl
106 nprw_l(n) = nsl_l
107 IF(ity==-1)THEN
108 ne = nint(rwl(8,n))
109 ne_l = 0
110 IF(ne/=0) THEN
111 DO kk = 1, ne
112 ie = lprw(k+kk)/10
113 ir = lprw(k+kk)-10*ie
114 IF(cep(ie)==proc)THEN
115 ne_l = ne_l+1
116 lprw_l(ilp+ne_l) = cel(ie)*10+ir
117 ENDIF
118 ENDDO
119 ilp = ilp + ne_l
120 k = k + ne
121 ENDIF
122 ENDIF
123 ENDDO
124 ENDIF
125C
126 CALL write_i_c(nprw_l,nnprw*nrwall)
127 CALL write_i_c(lprw_l,nslaw_l+neslaw_l)
128 len_ia = len_ia + nnprw*nrwall + nslaw_l+neslaw_l
129 IF(nslaw_l+neslaw_l>0)DEALLOCATE(lprw_l)
130 DEALLOCATE(nprw_l)
131C
132 ENDIF
133C
134 RETURN
#define my_real
Definition cppsort.cpp:32
integer function nlocal(n, p)
Definition ddtools.F:349
void write_i_c(int *w, int *len)