OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "task_c.inc"
#include "spmd_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine delnumbc (iparg, ixq, ixc, ixtg, invert, el2fa, nbf, inum, nelcut, dd_iad, iadd, nbf_l, nbpart, iadg, nodglob, idcmax)

Function/Subroutine Documentation

◆ delnumbc()

subroutine delnumbc ( integer, dimension(nparg,*) iparg,
integer, dimension(nixq,*) ixq,
integer, dimension(nixc,*) ixc,
integer, dimension(nixtg,*) ixtg,
integer, dimension(*) invert,
integer, dimension(*) el2fa,
integer nbf,
integer, dimension(*) inum,
integer nelcut,
integer, dimension(nspmd+1,*) dd_iad,
integer, dimension(*) iadd,
integer nbf_l,
integer nbpart,
integer, dimension(nspmd,*) iadg,
integer, dimension(*) nodglob,
integer idcmax )

Definition at line 32 of file delnumbc.F.

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
#define my_real
Definition cppsort.cpp:32
#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)