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

Go to the source code of this file.

Functions/Subroutines

subroutine c_sectio (nstrf, cep, proc, nstrf_l, lsecbuf_l, nnodt_l, nnodl_l)

Function/Subroutine Documentation

◆ c_sectio()

subroutine c_sectio ( integer, dimension(*) nstrf,
integer, dimension(*) cep,
integer proc,
integer nstrf_l,
integer lsecbuf_l,
integer nnodt_l,
integer nnodl_l )

Definition at line 31 of file c_sectio.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com01_c.inc"
45#include "com04_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER PROC, NSTRF_L, LSECBUF_L, NNODT_L, NNODL_L,
50 . NSTRF(*), CEP(*)
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 NNOD_S, NSELS_S, NSELQ_S, NSELC_S, NSELT_S, NSELP_S,
60 . NSELR_S, NSELTG_S, NSINT_S, NSELS_S_L, NSELQ_S_L,
61 . NSELC_S_L, NSELT_S_L, NSELP_S_L, NSELR_S_L, NSELTG_S_L,
62 . N, IP, P, J, K, OFF, NNOD_S_L, TYP_S
63C
64 nstrf_l = 30
65C LSECBUF_L = 0
66 lsecbuf_l = 10
67 nnodt_l = 0
68 nnodl_l = 0
69 ip = 30
70 DO n = 1, nsect
71 typ_s = nstrf(ip+1)
72 nnod_s = nstrf(ip+7)
73 nsels_s = nstrf(ip+8)
74 nselq_s = nstrf(ip+9)
75 nselc_s = nstrf(ip+10)
76 nselt_s = nstrf(ip+11)
77 nselp_s = nstrf(ip+12)
78 nselr_s = nstrf(ip+13)
79 nseltg_s= nstrf(ip+14)
80 nsint_s = nstrf(ip+15)
81 nsels_s_l = 0
82 nselq_s_l = 0
83 nselc_s_l = 0
84 nselt_s_l = 0
85 nselp_s_l = 0
86 nselr_s_l = 0
87 nseltg_s_l= 0
88c IP = IP + 30 + NSINT_S + NNOD_S
89c NSTRF_L = NSTRF_L + 30 + NSINT_S + NNOD_S
90 ip = ip + 30 + nsint_s
91 nstrf_l = nstrf_l + 30 + nsint_s
92C noeuds
93 nnod_s_l = 0
94 DO j = 1, nnod_s
95 k = nstrf(ip + j)
96 IF(nlocal(k,proc+1)==1)THEN
97 nnod_s_l = nnod_s_l + 1
98 END IF
99 END DO
100 IF(isecut==1) THEN
101C section cut
102 IF (typ_s>=1)THEN
103 nnodl_l = nnodl_l + nnod_s_l
104 ENDIF
105C section cut type 1 et superieur sur p0
106 IF(proc==0.AND.typ_s>=1) THEN
107 nnodt_l = nnodt_l + nnod_s_l
108 DO p = 2, nspmd
109 DO j = 1, nnod_s
110 k = nstrf(ip + j)
111 IF(nlocal(k,p)==1)THEN
112 nnodt_l = nnodt_l + 1
113 END IF
114 END DO
115 END DO
116 END IF
117 END IF
118C
119 ip = ip + nnod_s
120 nstrf_l = nstrf_l + nnod_s_l
121C
122 off = 0
123C solides
124 DO j = 1, nsels_s
125 k = nstrf(ip + j*2 - 1)
126 IF(cep(k+off)==proc) nsels_s_l = nsels_s_l + 1
127 END DO
128 nstrf_l = nstrf_l + 2*nsels_s_l
129 ip = ip + 2*nsels_s
130 off = off + numels
131C quad
132 DO j = 1, nselq_s
133 k = nstrf(ip + j*2 - 1)
134 IF(cep(k+off)==proc) nselq_s_l = nselq_s_l + 1
135 END DO
136 nstrf_l = nstrf_l + 2*nselq_s_l
137 ip = ip + 2*nselq_s
138 off = off + numelq
139C shell
140 DO j = 1, nselc_s
141 k = nstrf(ip + j*2 - 1)
142 IF(cep(k+off)==proc) nselc_s_l = nselc_s_l + 1
143 END DO
144 nstrf_l = nstrf_l + 2*nselc_s_l
145 ip = ip + 2*nselc_s
146 off = off + numelc
147C truss
148 DO j = 1, nselt_s
149 k = nstrf(ip + j*2 - 1)
150 IF(cep(k+off)==proc) nselt_s_l = nselt_s_l + 1
151 END DO
152 nstrf_l = nstrf_l + 2*nselt_s_l
153 ip = ip + 2*nselt_s
154 off = off + numelt
155C poutre
156 DO j = 1, nselp_s
157 k = nstrf(ip + j*2 - 1)
158 IF(cep(k+off)==proc) nselp_s_l = nselp_s_l + 1
159 END DO
160 nstrf_l = nstrf_l + 2*nselp_s_l
161 ip = ip + 2*nselp_s
162 off = off + numelp
163C ressort
164 DO j = 1, nselr_s
165 k = nstrf(ip + j*2 - 1)
166 IF(cep(k+off)==proc) nselr_s_l = nselr_s_l + 1
167 END DO
168 nstrf_l = nstrf_l + 2*nselr_s_l
169 ip = ip + 2*nselr_s
170 off = off + numelr
171C triangle
172 DO j = 1, nseltg_s
173 k = nstrf(ip + j*2 - 1)
174 IF(cep(k+off)==proc) nseltg_s_l = nseltg_s_l + 1
175 END DO
176 nstrf_l = nstrf_l + 2*nseltg_s_l
177 ip = ip + 2*nseltg_s
178 off = off + numeltg
179C cut
180 lsecbuf_l=lsecbuf_l+10
181 IF(typ_s>=100)lsecbuf_l=lsecbuf_l+12*nnod_s_l
182 IF(typ_s>=101)lsecbuf_l=lsecbuf_l+12*nnod_s_l
183 IF(typ_s>=102)lsecbuf_l=lsecbuf_l+6*nnod_s_l
184C.
185 ENDDO
186C
187 RETURN
integer function nlocal(n, p)
Definition ddtools.F:349