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