OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc.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 ../engine/source/output/anim/generate/delnumbc.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_fvb_amax ../engine/source/mpi/anim/spmd_fvb_amax.F
29!|| spmd_iget_partn ../engine/source/mpi/anim/spmd_iget_partn.F
30!|| write_i_c ../common_source/tools/input_output/write_routtines.c
31!||====================================================================
32 SUBROUTINE delnumbc(IPARG,IXQ ,IXC ,IXTG ,INVERT,
33 2 EL2FA,NBF ,INUM ,NELCUT,
34 3 DD_IAD ,IADD ,NBF_L,
35 4 NBPART,IADG,NODGLOB,IDCMAX )
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42#include "com01_c.inc"
43#include "com04_c.inc"
44#include "param_c.inc"
45#include "task_c.inc"
46#include "spmd_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER IXC(NIXC,*),IXTG(NIXTG,*),IPARG(NPARG,*),
51 . IXQ(NIXQ,*),EL2FA(*),INUM(*),
52 . INVERT(*), NBF,NELCUT,NBPART,IADG(NSPMD,*)
53 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBF_L
54C-----------------------------------------------
55C REAL
57 . off
58 INTEGER II(4),IE,NG, ITY, LFT, LLT, N, I, J,
59 . ipid, nel, iad, nft, imid,ialel,
60 . nn1,nn2,nn3,nn4,nn5,nn6,nn7,nn8,nn9,nn10,buf,nodglob(*),
61 . idcmax, idcmaxl
62C-----------------------------------------------
63C
64 nn1 = 1
65 nn2 = 1
66 nn3 = 1
67 nn4 = nn3 + numelq
68 nn5 = nn4 + numelc
69 nn6 = nn5 + numeltg
70 nn7 = nn6
71 nn8 = nn7
72 nn9 = nn8
73 nn10= nn9
74C
75 DO 490 ng=1,ngroup
76 nel =iparg(2,ng)
77 nft =iparg(3,ng)
78 iad =iparg(4,ng)
79 ity =iparg(5,ng)
80 lft=1
81 llt=nel
82C-----------------------------------------------
83C QUAD
84C-----------------------------------------------
85 IF(ity==2)THEN
86 DO i=lft,llt
87 n = i + nft
88 inum(el2fa(nn3+n)) = ixq(nixq,n)
89 ENDDO
90C-----------------------------------------------
91C COQUES
92C-----------------------------------------------
93 ELSEIF(ity==3)THEN
94 DO i=lft,llt
95 n = i + nft
96 inum(el2fa(nn4+n)) = ixc(nixc,n)
97 ENDDO
98C-----------------------------------------------
99C COQUES 3 NOEUDS
100C-----------------------------------------------
101 ELSEIF(ity==7)THEN
102 DO i=lft,llt
103 n = i + nft
104 inum(el2fa(nn5+n)) = ixtg(nixtg,n)
105 ENDDO
106 ELSE
107 ENDIF
108 490 CONTINUE
109C-----------------------------------------------
110 IF (nspmd == 1) THEN
111 idcmax=0
112 DO i=1,nbf
113 idcmax=max(idcmax,inum(i))
114 ENDDO
115 CALL write_i_c(inum,nbf)
116 DO i=1,nelcut
117 CALL write_i_c(0,1)
118 ENDDO
119 ELSE
120 idcmax=0
121 idcmaxl=0
122 DO i=1,nbf_l
123 idcmaxl=max(idcmaxl,inum(i))
124 ENDDO
125 CALL spmd_fvb_amax(idcmax, idcmaxl)
126 IF (ispmd==0) THEN
127 buf = numelqg+numelcg+numeltgg
128 ELSE
129 buf = 1
130 ENDIF
131 CALL spmd_iget_partn(1,nbf_l,inum,nbpart,iadg,buf,1)
132 ENDIF
133C-----------------------------------------------
134C
135 RETURN
136 END
#define my_real
Definition cppsort.cpp:32
subroutine delnumbc(iparg, ixq, ixc, ixtg, invert, el2fa, nbf, inum, nelcut, dd_iad, iadd, nbf_l, nbpart, iadg, nodglob, idcmax)
Definition delnumbc.F:36
#define max(a, b)
Definition macros.h:21
subroutine spmd_fvb_amax(idcmax, idcmaxl)
subroutine spmd_iget_partn(size, nbf_l, np, nbpart, iadg, srbuf, iflag)
void write_i_c(int *w, int *len)