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

Go to the source code of this file.

Functions/Subroutines

subroutine delnumbc_ply (iply, nel_ply, iparg, ixc, ixtg, invert, el2fa, nbf, inum, nelcut, dd_iad, iadd, nbf_l, nbpart, iadg, nodglob, idcmax, nbf_pxfemg)

Function/Subroutine Documentation

◆ delnumbc_ply()

subroutine delnumbc_ply ( integer iply,
integer nel_ply,
integer, dimension(nparg,*) iparg,
integer, dimension(nixc,*) ixc,
integer, dimension(nixtg,*) ixtg,
integer, dimension(*) invert,
integer, dimension(*) el2fa,
integer nbf,
integer, dimension(*) inum,
integer nelcut,
integer, dimension(nspmd+1,*) dd_iad,
integer, dimension(*) iadd,
integer nbf_l,
integer nbpart,
integer, dimension(nspmd,*) iadg,
integer, dimension(*) nodglob,
integer idcmax,
integer nbf_pxfemg )

Definition at line 34 of file delnumbc_ply.F.

40 USE plyxfem_mod
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47#include "com01_c.inc"
48#include "com04_c.inc"
49#include "param_c.inc"
50#include "task_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER IXC(NIXC,*),IXTG(NIXTG,*),IPARG(NPARG,*),
55 . EL2FA(*),INUM(*),
56 . INVERT(*), NBF,NELCUT,NBPART,IADG(NSPMD,*)
57 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBF_L,IPLY,
58 . NEL_PLY,NBF_PXFEMG,NODGLOB(*)
59C-----------------------------------------------
60C REAL
62 . off
63 INTEGER II,IE,NG, ITY, LFT, LLT, N, I, J,
64 . IPID, NEL, IAD, NFT, IMID,IALEL,
65 . NN2,NN3,NN4,NN5,NN6,NN7,NN8,NN9,NN10,BUF,
66 . IDCMAX, IDCMAXL,ISHPLYXFEM,ID_IE,IDPLY,NPT,
67 . IPT,ELC,PLYELEMS(NUMELC),PLYS,RBUF,NELCOUNT,ELEM
68
69 INTEGER, DIMENSION(:), ALLOCATABLE :: INUMG
70
71 INTEGER GET_PLY_ELEM
72 EXTERNAL get_ply_elem
73C-----------------------------------------------
74 nelcount = 0
75 DO plys = 1,nplypart
76 iply = indx_ply(plys)
77
78 plyelems=0
79 DO i=1,plyshell(iply)%PLYNUMSHELL
80 ipt = plyshell(iply)%SHELLIPT(i)
81 elc = plyshell(iply)%SHID(i)
82 plyelems(elc)=ipt
83 ENDDO
84C
85 idply = idcmax + nel_ply
86 ii = 0
87 DO 490 ng=1,ngroup
88 nel =iparg(2,ng)
89 nft =iparg(3,ng)
90 iad =iparg(4,ng)
91 ity =iparg(5,ng)
92 ishplyxfem = iparg(50,ng)
93 lft=1
94 llt=nel
95C-----------------------------------------------
96C QUAD
97C-----------------------------------------------
98 IF(ishplyxfem > 0) THEN
99C-----------------------------------------------
100C COQUES
101C-----------------------------------------------
102 IF(ity==3)THEN
103 DO i=lft,llt
104 n = i + nft
105 IF(plyelems(n) > 0) THEN
106 ii = ii + 1
107 elem = get_ply_elem(iply,n)
108 inum(el2fa(nel_ply + ii)) =
109 * plyshell(iply)%SHELLID(elem)
110 ENDIF
111 ENDDO
112C-----------------------------------------------
113C COQUES 3 NOEUDS
114C-----------------------------------------------
115 ELSEIF(ity==7)THEN
116 DO i=lft,llt
117cc N = I + NFT
118cc INUM(EL2FA(NN5+N)) = IXTG(NIXTG,N)
119 ENDDO
120C-----------------------------------------------
121C RNUR
122C-----------------------------------------------
123 ENDIF
124 ENDIF
125 490 CONTINUE
126C-----------------------------------------------
127 nel_ply = nel_ply + plyshell(iply)%PLYNUMSHELL
128 ENDDO
129
130 IF (nspmd == 1) THEN
131 DO i=1,nbf
132 inum(i) = inum(i) + idcmax
133 ENDDO
134 CALL write_i_c(inum,nbf)
135
136 idcmax=0
137 DO i=1,nbf
138 idcmax=max(idcmax,inum(i))
139 ENDDO
140
141 ELSE
142C
143 IF (ispmd==0) THEN
144 rbuf = nbf_pxfemg
145 CALL spmd_iget_partn_ply(1,nbf_l,inum,nplypart,iadg,rbuf,1,
146 * idcmax)
147 ELSE
148 rbuf = 1
149 CALL spmd_iget_partn_ply(1,nbf_l,inum,nplypart,iadg,rbuf,1,
150 * idcmax)
151 END IF
152 ENDIF
153
154C-----------------------------------------------
155C
156 RETURN
integer function get_ply_elem(iply, elemid)
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21
integer, dimension(:), allocatable indx_ply
Definition plyxfem_mod.F:60
integer nplypart
Definition plyxfem_mod.F:59
type(plyshells), dimension(:), allocatable plyshell
Definition plyxfem_mod.F:56
subroutine spmd_iget_partn_ply(size, nbf_l, np, nbpart, iadg, srbuf, iflag, idply)
void write_i_c(int *w, int *len)