OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upxfem_tagxp.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!|| upxfem_tagxp ../engine/source/elements/xfem/upxfem_tagxp.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| crk_tagxp3 ../engine/source/elements/xfem/crk_tagxp3.F
29!|| crk_tagxp4 ../engine/source/elements/xfem/crk_tagxp4.F
30!|| startimeg ../engine/source/system/timer.F
31!|| stoptimeg ../engine/source/system/timer.F
32!|| upenric3_n3 ../engine/source/elements/xfem/upenric3_nx.F
33!|| upenric3_n4 ../engine/source/elements/xfem/upenric3_nx.F
34!||--- uses -----------------------------------------------------
35!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
36!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
37!||====================================================================
38 SUBROUTINE upxfem_tagxp(XFEM_TAB,
39 . IPARG ,IXC ,NGROUC ,IGROUC ,IXTG ,
40 . IADC_CRK ,IEL_CRK ,INOD_CRK,ELCUTC ,NODEDGE ,
41 . ENRTAG ,CRKEDGE ,XEDGE4N ,XEDGE3N ,ITAB )
42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
46 USE elbufdef_mod
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "param_c.inc"
55#include "com01_c.inc"
56#include "com04_c.inc"
57#include "com_xfem1.inc"
58#include "task_c.inc"
59#include "vect01_c.inc"
60C-----------------------------------------------
61C D u m m y A r g u m e n t s
62C-----------------------------------------------
63 INTEGER IPARG(NPARG,*),IXC(NIXC,*),NGROUC,IGROUC(*),IEL_CRK(*),
64 . ELCUTC(2,*),IADC_CRK(*),INOD_CRK(*),IXTG(NIXTG,*),ITAB(*),
65 . NODEDGE(2,*),ENRTAG(NUMNOD,*),XEDGE4N(4,*),XEDGE3N(3,*)
66C
67 TYPE(elbuf_struct_), TARGET ,DIMENSION(NGROUP,NXEL) :: XFEM_TAB
68 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER I,IG,NG,JFT,JLT,NEL,NXLAY,NF1,IXFEM,OFF,ITG1,ITG2,ACTIFXFEM
73C=======================================================================
74 ITG1 = 1+numelc
75 itg2 = 1+4*ecrkxfec
76C-----------------------------------------------
77C Boucle parallele dynamique SMP
78!$OMP DO SCHEDULE(DYNAMIC,1)
79 DO ig = 1, ngrouc
80 ng = igrouc(ig)
81 off = iparg(8,ng)
82 ixfem = iparg(54,ng) * iparg(70,ng) ! ixfem * activexfem
83 IF (off == 0 .and. ixfem > 0) THEN
84 IF (iddw > 0) CALL startimeg(ng)
85C---
86 ity = iparg(5,ng)
87 nel = iparg(2,ng)
88 nft = iparg(3,ng)
89 nxlay = iparg(59,ng)
90 lft = 1
91 llt = min(nvsiz,nel)
92 jft = lft
93 jlt = llt
94C---
95 IF (ity == 3) THEN
96 CALL crk_tagxp4(iparg ,ixc ,nft ,jft ,jlt ,
97 . elcutc ,iadc_crk,iel_crk,inod_crk,enrtag,
98 . nxlay ,crkedge ,xedge4n,itab )
99 ELSEIF (ity == 7) THEN
100 CALL crk_tagxp3(
101 . iparg ,ixtg ,nft ,jft ,jlt ,
102 . elcutc(1,itg1),iadc_crk(itg2),iel_crk(itg1),inod_crk,enrtag,
103 . nxlay ,crkedge ,xedge3n ,itab )
104 ENDIF
105C---
106 IF (iddw > 0) CALL stoptimeg(ng)
107 ENDIF
108 ENDDO
109!$OMP END DO
110C-----------------------------------------------
111C Boucle parallele dynamique SMP
112!$OMP DO SCHEDULE(DYNAMIC,1)
113 DO ig = 1, ngrouc
114 ng = igrouc(ig)
115 off = iparg(8,ng)
116 ixfem = iparg(54,ng) * iparg(70,ng) ! IXFEM * ACTIVEXFEM
117 IF (off == 0 .and. ixfem > 0) THEN
118 IF (iddw > 0) CALL startimeg(ng)
119C---
120 ity = iparg(5,ng)
121 nel = iparg(2,ng)
122 nft = iparg(3,ng)
123 lft = 1
124 llt = min(nvsiz,nel)
125 jft=lft
126 jlt=llt
127C---
128 IF (ity == 3) THEN
129 CALL upenric3_n4(xfem_tab(ng,1:nxel),
130 . iparg ,ixc ,nft ,jft ,jlt ,
131 . elcutc ,iadc_crk,iel_crk,inod_crk,ixfem,
132 . crkedge ,xedge4n )
133 ELSEIF (ity == 7) THEN
134 CALL upenric3_n3(xfem_tab(ng,1:nxel),
135 . iparg ,ixtg ,nft ,jft ,jlt ,
136 . elcutc(1,itg1),iadc_crk(itg2),iel_crk(itg1),inod_crk,ixfem,
137 . crkedge ,xedge3n )
138 ENDIF
139C---
140 IF (iddw > 0) CALL stoptimeg(ng)
141 ENDIF
142 ENDDO
143!$OMP END DO
144c-------------
145 RETURN
146 END
subroutine crk_tagxp3(iparg, ixtg, nft, jft, jlt, elcutc, iad_crktg, iel_crktg, inod_crk, enrtag, nxlay, crkedge, xedge3n, itab)
Definition crk_tagxp3.F:34
subroutine crk_tagxp4(iparg, ixc, nft, jft, jlt, elcutc, iadc_crk, iel_crk, inod_crk, enrtag, nxlay, crkedge, xedge4n, itab)
Definition crk_tagxp4.F:34
subroutine startimeg(ng)
Definition timer.F:1487
subroutine stoptimeg(ng)
Definition timer.F:1535
#define min(a, b)
Definition macros.h:20
subroutine upenric3_n4(xfem_tab, iparg, ixc, nft, jft, jlt, elcutc, iadc_crk, iel_crk, inod_crk, ixfem, crkedge, xedge4n)
Definition upenric3_nx.F:35
subroutine upenric3_n3(xfem_tab, iparg, ixtg, nft, jft, jlt, elcutc, iad_crktg, iel_crktg, inod_crk, ixfem, crkedge, xedge3n)
subroutine upxfem_tagxp(xfem_tab, iparg, ixc, ngrouc, igrouc, ixtg, iadc_crk, iel_crk, inod_crk, elcutc, nodedge, enrtag, crkedge, xedge4n, xedge3n, itab)