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