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

Go to the source code of this file.

Functions/Subroutines

subroutine delnumbc_crk (iparg, iel_crk, inum, idcmax, el2fa, iad_crkg, nbf_l, nbf, indx_crk)

Function/Subroutine Documentation

◆ delnumbc_crk()

subroutine delnumbc_crk ( integer, dimension(nparg,*) iparg,
integer, dimension(*) iel_crk,
integer, dimension(*) inum,
integer idcmax,
integer, dimension(*) el2fa,
integer, dimension(nspmd,*) iad_crkg,
integer nbf_l,
integer nbf,
integer, dimension(*) indx_crk )

Definition at line 34 of file delnumbc_crk.F.

36C-----------------------------------------------
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "param_c.inc"
46#include "com01_c.inc"
47#include "com04_c.inc"
48#include "com_xfem1.inc"
49#include "task_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IPARG(NPARG,*),EL2FA(*),IAD_CRKG(NSPMD,*),IEL_CRK(*),
54 . INDX_CRK(*),INUM(*)
55 INTEGER NBF_L,NBF
56C-----------------------------------------------
57 INTEGER I, N, II, NG, ITY, NEL, NFT, IXFEM, IDCMAX, CRKS, RBUF, ELEM, ICRK,
58 . NEL_CRK,NLEVXF
59C=======================================================================
60c
61 IF (nspmd > 1) CALL spmd_max_xfe_i(idcmax)
62C-----------------------------------------------
63C
64 nel_crk = 0
65 DO crks= 1,ncrkpart
66 icrk = indx_crk(crks)
67 ii = 0
68 DO ng=1,ngroup
69 ixfem = iparg(54,ng)
70 nlevxf = iparg(65,ng)
71 IF (ixfem > 0) THEN
72 IF (ixfem == 2 .AND. icrk > nlevxf) cycle
73 nel = iparg(2,ng)
74 nft = iparg(3,ng)
75 ity = iparg(5,ng)
76C-----------------------------------------------
77C COQUES 4 N
78C-----------------------------------------------
79 IF (ity == 3) THEN
80 DO i=1,nel
81 n = i + nft
82 elem = iel_crk(n)
83 IF (iel_crk(n) > 0) THEN
84 ii = ii + 1
85 inum(el2fa(nel_crk + ii)) =
86 * crkshell(icrk)%CRKSHELLID(elem)+idcmax
87 ENDIF
88 ENDDO
89C-----------------------------------------------
90C 3-NODE SHELLS
91C-----------------------------------------------
92 ELSEIF (ity == 7) THEN
93 DO i=1,nel
94 n = i + nft
95 elem = iel_crk(n+numelc)
96 IF(iel_crk(n+numelc) > 0) THEN
97 ii = ii + 1
98 inum(el2fa(nel_crk + ii)) =
99 * crkshell(icrk)%CRKSHELLID(elem+ecrkxfec)+idcmax
100 ENDIF
101 ENDDO
102 ENDIF
103 ENDIF
104 ENDDO ! NG=1,NGROUP
105C-----
106 nel_crk = nel_crk + crkshell(icrk)%CRKNUMSHELL
107 ENDDO ! DO CRKS = 1,NCRKPART
108C-----------------------------------------------
109 IF (nspmd == 1) THEN
110 CALL write_i_c(inum,nbf)
111 idcmax = 0
112 DO i=1,nbf
113 idcmax = max(idcmax,inum(i))
114 ENDDO
115 ELSE
116 IF (ispmd == 0) THEN
117 rbuf = nbf
118 ELSE
119 rbuf = 1
120 END IF
121 CALL spmd_iget_partn(1,nbf_l,inum,ncrkpart,iad_crkg,rbuf,1)
122 ENDIF
123C-----------
124 RETURN
#define max(a, b)
Definition macros.h:21
type(xfem_shell_), dimension(:), allocatable crkshell
subroutine spmd_iget_partn(size, nbf_l, np, nbpart, iadg, srbuf, iflag)
subroutine spmd_max_xfe_i(int)
Definition spmd_xfem.F:1130
void write_i_c(int *w, int *len)