OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc_ply.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| delnumbc_ply ../engine/source/output/anim/generate/delnumbc_ply.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| get_ply_elem ../engine/source/output/anim/generate/anin_ply_init.F
29!|| spmd_iget_partn_ply ../engine/source/mpi/anim/spmd_iget_partn_ply.F
30!|| write_i_c ../common_source/tools/input_output/write_routtines.c
31!||--- uses -----------------------------------------------------
32!|| plyxfem_mod ../engine/share/modules/plyxfem_mod.F
33!||====================================================================
34 SUBROUTINE delnumbc_ply(IPLY,NEL_PLY,IPARG,
35 2 IXC ,IXTG ,INVERT,
36 3 EL2FA,NBF ,INUM ,NELCUT,
37 4 DD_IAD ,IADD ,NBF_L,
38 5 NBPART,IADG,NODGLOB,IDCMAX,
39 6 NBF_PXFEMG)
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
157 END
#define my_real
Definition cppsort.cpp:32
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)
#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)