OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumb0.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!|| delnumb0 ../engine/source/output/anim/generate/delnumb0.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 delnumb0(IPARG ,EL2FA ,NBF ,INUM ,DD_IAD,
32 . IADD ,NBPART ,IADG ,KXSP )
33C=======================================================================
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39#include "com01_c.inc"
40#include "sphcom.inc"
41#include "param_c.inc"
42#include "task_c.inc"
43#include "spmd_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IPARG(NPARG,*),EL2FA(*),INUM(*),
48 . nbf,iadg(nspmd,*),kxsp(nisp,*)
49 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBPART
50C-----------------------------------------------
51 INTEGER NG, ITY, LFT, LLT, N, I, NEL, IAD, NFT,
52 . nn1, nn2,buf
53C-----------------------------------------------
54C
55 nn1 = 1
56 nn2 = nn1 + numsph+maxpjet
57C
58 DO 490 ng=1,ngroup
59 nel =iparg(2,ng)
60 nft =iparg(3,ng)
61 iad =iparg(4,ng)
62 ity =iparg(5,ng)
63 lft=1
64 llt=nel
65C-----------------------------------------------
66 IF(ity==51)THEN
67C-----------------------------------------------
68C PARTICULES SPH.
69C-----------------------------------------------
70 DO i=lft,llt
71 n = i + nft
72 IF(el2fa(nn1+n)/=0)THEN
73 inum(el2fa(nn1+n)) = kxsp(nisp,n)
74 ENDIF
75 ENDDO
76 ELSE
77 ENDIF
78 490 CONTINUE
79C-----------------------------------------------
80 IF (nspmd == 1) THEN
81 CALL write_i_c(inum,nbf)
82 ELSE
83 IF (ispmd==0) THEN
84 buf = numsphg
85 ELSE
86 buf = 1
87 ENDIF
88
89 CALL spmd_iget_partn(1,nbf,inum,nbpart,iadg,buf,1)
90
91 ENDIF
92C-----------------------------------------------
93C
94 RETURN
95 END
subroutine delnumb0(iparg, el2fa, nbf, inum, dd_iad, iadd, nbpart, iadg, kxsp)
Definition delnumb0.F:33
subroutine spmd_iget_partn(size, nbf_l, np, nbpart, iadg, srbuf, iflag)
void write_i_c(int *w, int *len)