OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumb6.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!|| delnumbs ../engine/source/output/anim/generate/delnumb6.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_iget_partn ../engine/source/mpi/anim/spmd_iget_partn.F
29!|| write_i_c ../common_source/tools/input_output/write_routtines.c
30!||====================================================================
31 SUBROUTINE delnumbs(IPARG,IXS ,EL2FA,NBF ,INUM ,
32 . DD_IAD ,IADD ,NBPART,IADG ,KXSP ,
33 . ISPH3D)
34C=======================================================================
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40#include "com01_c.inc"
41#include "com04_c.inc"
42#include "sphcom.inc"
43#include "param_c.inc"
44#include "task_c.inc"
45#include "spmd_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49C REAL
50 INTEGER IPARG(NPARG,*),
51 . IXS(NIXS,*),EL2FA(*),INUM(*),
52 . nbf,iadg(nspmd,*),kxsp(nisp,*)
53 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBPART,
54 . ISPH3D
55C-----------------------------------------------
56 INTEGER NG, ITY, LFT, LLT, N, I, J, NEL, IAD, NFT,
57 . NN1,NN2,NN3,NN4,NN5,NN6,NN7,NN8,NN9,NN10, ISOLNOD,
58 . buf
59C-----------------------------------------------
60C
61 nn1 = 1
62 nn2 = 1
63 nn3 = nn2 + numels
64 nn4 = nn3 + isph3d*(numsph+maxpjet)
65 nn5 = nn4 + numelig3d
66C
67 DO 490 ng=1,ngroup
68 nel =iparg(2,ng)
69 nft =iparg(3,ng)
70 iad =iparg(4,ng)
71 ity =iparg(5,ng)
72 isolnod = iparg(28,ng)
73 lft=1
74 llt=nel
75C-----------------------------------------------
76C SOLIDES 16N
77C-----------------------------------------------
78 IF(ity==1.AND.isolnod==16)THEN
79 DO i=lft,llt
80 n = i + nft
81 IF(el2fa(nn2+n)/=0)THEN
82 inum(el2fa(nn2+n)) = ixs(nixs,n)
83 inum(el2fa(nn2+n)+1) = ixs(nixs,n)
84 inum(el2fa(nn2+n)+2) = ixs(nixs,n)
85 inum(el2fa(nn2+n)+3) = ixs(nixs,n)
86 ENDIF
87 ENDDO
88C-----------------------------------------------
89C AUTRES SOLIDES
90C-----------------------------------------------
91 ELSEIF(ity==1)THEN
92 DO i=lft,llt
93 n = i + nft
94 IF(el2fa(nn2+n)/=0)THEN
95 inum(el2fa(nn2+n)) = ixs(nixs,n)
96 ENDIF
97 ENDDO
98 ELSEIF(isph3d==1.AND.ity==51)THEN
99C-----------------------------------------------
100C TETRAS SPH.
101C-----------------------------------------------
102 DO i=lft,llt
103 n = i + nft
104 IF(el2fa(nn3+n)/=0)THEN
105 inum(el2fa(nn3+n)) = kxsp(nisp,n)
106 ENDIF
107 ENDDO
108 ELSEIF(ity==101)THEN
109C-----------------------------------------------
110C ISO ELEMS
111C-----------------------------------------------
112 DO i=lft,llt
113 n = i + nft
114 IF(el2fa(nn4+n)/=0)THEN
115 DO j=1,27
116 inum(el2fa(nn4+n)+j-1) = 1000000000 + 27*(n-1) + j
117 ENDDO
118 ENDIF
119 ENDDO
120 ELSE
121 ENDIF
122 490 CONTINUE
123C-----------------------------------------------
124 IF (nspmd == 1) THEN
125 CALL write_i_c(inum,nbf)
126 ELSE
127
128 IF (ispmd==0) THEN
129 buf = numelsg + 3*numels16g + numsphg + 27* numelig3d
130 ELSE
131 buf = 1
132 ENDIF
133
134 CALL spmd_iget_partn(1,nbf,inum,nbpart,iadg,buf,1)
135 ENDIF
136C-----------------------------------------------
137C
138 RETURN
139 END
subroutine delnumbs(iparg, ixs, el2fa, nbf, inum, dd_iad, iadd, nbpart, iadg, kxsp, isph3d)
Definition delnumb6.F:34
subroutine spmd_iget_partn(size, nbf_l, np, nbpart, iadg, srbuf, iflag)
void write_i_c(int *w, int *len)