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,IE,NG,ITY,NEL,NFT,IXFEM,IDCMAX,CRKS,RBUF,ELEM,ICRK,
58 . NEL_CRK,NLEVXF
59 my_real off
60C=======================================================================
61c
62 IF (nspmd > 1) CALL spmd_max_xfe_i(idcmax)
63C-----------------------------------------------
64C
65 nel_crk = 0
66 DO crks= 1,ncrkpart
67 icrk = indx_crk(crks)
68 ii = 0
69 DO ng=1,ngroup
70 ixfem = iparg(54,ng)
71 nlevxf = iparg(65,ng)
72 IF (ixfem > 0) THEN
73 IF (ixfem == 2 .AND. icrk > nlevxf) cycle
74 nel = iparg(2,ng)
75 nft = iparg(3,ng)
76 ity = iparg(5,ng)
77C-----------------------------------------------
78C COQUES 4 N
79C-----------------------------------------------
80 IF (ity == 3) THEN
81 DO i=1,nel
82 n = i + nft
83 elem = iel_crk(n)
84 IF (iel_crk(n) > 0) THEN
85 ii = ii + 1
86 inum(el2fa(nel_crk + ii)) =
87 * crkshell(icrk)%CRKSHELLID(elem)+idcmax
88 ENDIF
89 ENDDO
90C-----------------------------------------------
91C COQUES 3 NOEUDS
92C-----------------------------------------------
93 ELSEIF (ity == 7) THEN
94 DO i=1,nel
95 n = i + nft
96 elem = iel_crk(n+numelc)
97 IF(iel_crk(n+numelc) > 0) THEN
98 ii = ii + 1
99 inum(el2fa(nel_crk + ii)) =
100 * crkshell(icrk)%CRKSHELLID(elem+ecrkxfec)+idcmax
101 ENDIF
102 ENDDO
103 ENDIF
104 ENDIF
105 ENDDO ! NG=1,NGROUP
106C-----
107 nel_crk = nel_crk + crkshell(icrk)%CRKNUMSHELL
108 ENDDO ! DO CRKS = 1,NCRKPART
109C-----------------------------------------------
110 IF (nspmd == 1) THEN
111 CALL write_i_c(inum,nbf)
112 idcmax = 0
113 DO i=1,nbf
114 idcmax = max(idcmax,inum(i))
115 ENDDO
116 ELSE
117 IF (ispmd == 0) THEN
118 rbuf = nbf
119 ELSE
120 rbuf = 1
121 END IF
122 CALL spmd_iget_partn(1,nbf_l,inum,ncrkpart,iad_crkg,rbuf,1)
123 ENDIF
124C-----------
125 RETURN
#define my_real
Definition cppsort.cpp:32
#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)