OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbf.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!|| delnumbf ../engine/source/output/anim/generate/delnumbf.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!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
33!||====================================================================
34 SUBROUTINE delnumbf(IPARG ,IXT ,IXP ,IXR ,EL2FA ,
35 . NBF ,INUM ,DD_IAD ,IADD ,NBPART,
36 . IADG ,INUMX1,NANIM1D_L)
37C-----------------------------------------------
38 USE my_alloc_mod
39 use element_mod , only : nixt,nixr,nixp
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46#include "com01_c.inc"
47#include "com04_c.inc"
48#include "param_c.inc"
49#include "task_c.inc"
50#include "spmd_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER IPARG(NPARG,*),
55 . IXT(NIXT,*),IXP(NIXP,*),
56 . ixr(nixr,*),el2fa(*),inum(*),
57 . nbf,iadg(nspmd,*),inumx1(*)
58 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBPART,
59 . NANIM1D_L,BUF
60C-----------------------------------------------
61 INTEGER NG, ITY, LFT, LLT, N, I,
62 . NEL, IAD, NFT,MLW,
63 . nn1,nn2,nn3,nn4,nn5,nn6,nn7,nn8,nn9,nn10,
64 . nbf2
65 INTEGER,DIMENSION(:),ALLOCATABLE:: WA
66C-----------------------------------------------
67 CALL my_alloc(wa, nbf+nanim1d_l)
68C
69 nn1 = 1
70 nn2 = 1
71 nn3 = 1
72 nn4 = nn3
73 nn5 = nn4
74 nn6 = nn5
75 nn7 = nn6 + numelt
76 nn8 = nn7 + numelp
77 nn9 = nn8 + numelr
78 nn10= nn9
79C
80 DO 490 ng=1,ngroup
81 mlw =iparg(1,ng)
82 nel =iparg(2,ng)
83 nft =iparg(3,ng)
84 iad =iparg(4,ng)
85 ity =iparg(5,ng)
86 lft=1
87 llt=nel
88C-----------------------------------------------
89C TRUSS
90C-----------------------------------------------
91 IF(ity==4)THEN
92 DO i=lft,llt
93 n = i + nft
94 inum(el2fa(nn6+n)) = ixt(nixt,n)
95 ENDDO
96C-----------------------------------------------
97C POUTRES
98C-----------------------------------------------
99 ELSEIF(ity==5)THEN
100 DO i=lft,llt
101 n = i + nft
102 inum(el2fa(nn7+n)) = ixp(nixp,n)
103 ENDDO
104C-----------------------------------------------
105C RESSORTS
106C-----------------------------------------------
107 ELSEIF(ity==6)THEN
108 DO i=lft,llt
109 n = i + nft
110 inum(el2fa(nn8+n)) = ixr(nixr,n)
111 IF(mlw==3)inum(el2fa(nn8+n)+1) = ixr(nixr,n)
112 ENDDO
113C-----------------------------------------------
114 ELSE
115 ENDIF
116 490 CONTINUE
117C-----------------------------------------------
118 IF (nspmd == 1) THEN
119 CALL write_i_c(inum,nbf)
120 CALL write_i_c(inumx1,nanim1d)
121 ELSE
122 DO i = 1, nbf
123 wa(i) = inum(i)
124 ENDDO
125 DO i=1,nanim1d_l
126 wa(nbf+i)=inumx1(i)
127 ENDDO
128 nbf2 = nbf+nanim1d_l
129 IF (ispmd==0) THEN
130 buf = nb1dg+nanim1d
131 ELSE
132 buf = 1
133 ENDIF
134 CALL spmd_iget_partn(1,nbf2,wa,nbpart,iadg,buf,1)
135 ENDIF
136C-----------------------------------------------
137C
138 DEALLOCATE(wa)
139 RETURN
140 END
subroutine delnumbf(iparg, ixt, ixp, ixr, el2fa, nbf, inum, dd_iad, iadd, nbpart, iadg, inumx1, nanim1d_l)
Definition delnumbf.F:37
subroutine spmd_iget_partn(size, nbf_l, np, nbpart, iadg, srbuf, iflag)
void write_i_c(int *w, int *len)