OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc_crk.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_crk ../engine/source/output/anim/generate/delnumbc_crk.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!|| spmd_max_xfe_i ../engine/source/mpi/elements/spmd_xfem.F
30!|| write_i_c ../common_source/tools/input_output/write_routines.c
31!||--- uses -----------------------------------------------------
32!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
33!||====================================================================
34 SUBROUTINE delnumbc_crk(IPARG ,IEL_CRK ,INUM ,IDCMAX ,
35 . EL2FA ,IAD_CRKG,NBF_L ,NBF ,INDX_CRK )
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
125 END
subroutine delnumbc_crk(iparg, iel_crk, inum, idcmax, el2fa, iad_crkg, nbf_l, nbf, indx_crk)
#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)