OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upxfem2.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!|| upxfem2 ../engine/source/elements/xfem/upxfem2.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| spmd_exch_iedge ../engine/source/mpi/elements/spmd_xfem.F
29!|| spmd_exch_nodenr ../engine/source/mpi/elements/spmd_xfem.F
30!|| spmd_exch_redge ../engine/source/mpi/elements/spmd_xfem.F
31!|| spmd_max_xfe_i ../engine/source/mpi/elements/spmd_xfem.F
32!|| startimeg ../engine/source/system/timer.F
33!|| stoptimeg ../engine/source/system/timer.F
34!|| upenric_last ../engine/source/elements/xfem/upenric_last.F
35!|| upenritg_last ../engine/source/elements/xfem/upenritg_last.F
36!||--- uses -----------------------------------------------------
37!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
38!|| element_mod ../common_source/modules/elements/element_mod.F90
39!||====================================================================
40 SUBROUTINE upxfem2(IPARG ,IXC ,NGROUC ,IGROUC ,IADC_CRK ,
41 . IEL_CRK ,ELCUTC ,IXTG ,ENRTAG ,INOD_CRK ,
42 . IAD_ELEM ,FR_ELEM,IAD_EDGE,FR_EDGE,FR_NBEDGE,
43 . CRKEDGE )
44C-----------------------------------------------
46 use element_mod , only : nixc,nixtg
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 "com01_c.inc"
55#include "com04_c.inc"
56#include "com_xfem1.inc"
57#include "param_c.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(*),
64 . IADC_CRK(*),IEL_CRK(*),ELCUTC(2,*),IXTG(NIXTG,*),
65 . ENRTAG(NUMNOD,*),INOD_CRK(*),FR_ELEM(*),FR_EDGE(*),
66 . iad_elem(2,*),iad_edge(*),fr_nbedge(*)
67 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
68C-----------------------------------------------
69C L o c a l V a r i a b l e s
70C-----------------------------------------------
71 INTEGER IG,NG,JFT,JLT,NEL,ITG1,ITG2,
72 . SIZE,LSDRC,FLAG,ACTIFXFEM,NXLAY
73C=======================================================================
74C---
75C_tmp IF(NUMELCRK2 == NUMELCRK)RETURN ! check in hypethreading, SPMD
76C---
77C----------------------------------------
78 itg1 = 1+numelc
79 itg2 = 1 + ecrkxfec*4
80 nxlay = nxlaymax
81c-------------------------------
82C SMP dynamic parallel loop
83!$OMP DO SCHEDULE(DYNAMIC,1)
84c-------------------------------
85c Save actual phantom enrichments at the end of cycle
86c-------------------------------
87 DO ig = 1, ngrouc
88 ng = igrouc(ig)
89 IF (iparg(54,ng) == 0) GOTO 100 ! IXFEM
90 IF (iparg(8,ng) == 1) GOTO 100 ! GROUP OFF
91 IF (iddw > 0) CALL startimeg(ng)
92C---
93 ity = iparg(5,ng)
94 nel = iparg(2,ng)
95 nft = iparg(3,ng)
96 actifxfem=iparg(70,ng)
97 lft = 1
98 llt = min(nvsiz,nel)
99 jft=lft
100 jlt=llt
101 IF (actifxfem == 0) GOTO 100
102C---
103 IF (ity == 3) THEN
104 CALL upenric_last(
105 . ixc ,nft ,jft ,jlt ,iadc_crk,
106 . iel_crk,elcutc,nxlay ,crkedge )
107C---
108 ELSEIF (ity == 7) THEN
109 CALL upenritg_last(
110 . ixtg ,nft ,jft ,jlt,iadc_crk(itg2),
111 . iel_crk(itg1),elcutc(1,itg1),nxlay,crkedge )
112 ENDIF
113C---
114 IF (iddw > 0) CALL stoptimeg(ng)
115 100 CONTINUE
116 END DO
117!$OMP END DO
118C-------------
119 numelcrk2 = numelcrk
120c anim file / crack advance)
121C-------------
122C
123 IF(nspmd > 1)THEN
124 CALL spmd_max_xfe_i(numelcrk2) ! no more used
125 SIZE = ienrnod
126 lsdrc = iad_elem(1,nspmd+1)-iad_elem(1,1)
127 flag = 2
128 CALL spmd_exch_nodenr(iad_elem,fr_elem,SIZE,lsdrc,inod_crk,
129 . enrtag,flag)
130C
131 flag = 2
132 SIZE = nxlay
133 lsdrc = fr_nbedge(nspmd+1)
134 CALL spmd_exch_iedge(iad_edge,fr_edge,SIZE ,lsdrc,fr_nbedge,
135 . flag ,crkedge)
136C
137 SIZE = nxlay
138 lsdrc = fr_nbedge(nspmd+1)
139 CALL spmd_exch_redge(iad_edge,fr_edge,SIZE,lsdrc,fr_nbedge,crkedge)
140C
141 END IF
142C-------------
143 RETURN
144 END
subroutine startimeg(ng)
Definition timer.F:1371
subroutine stoptimeg(ng)
Definition timer.F:1419
#define min(a, b)
Definition macros.h:20
subroutine spmd_max_xfe_i(int)
Definition spmd_xfem.F:1130
subroutine spmd_exch_nodenr(iad_elem, fr_elem, size, lenr, inod_crk, enrtag, flag)
Definition spmd_xfem.F:483
subroutine spmd_exch_iedge(iad_edge, fr_edge, size, lsdrc, fr_nbedge, flag, crkedge)
Definition spmd_xfem.F:619
subroutine spmd_exch_redge(iad_edge, fr_edge, size, lsdrc, fr_nbedge, crkedge)
Definition spmd_xfem.F:872
subroutine upenric_last(ixc, nft, jft, jlt, iadc_crk, iel_crk, elcutc, nxlay, crkedge)
subroutine upenritg_last(ixtg, nft, jft, jlt, iad_crktg, iel_crktg, elcutc, nxlay, crkedge)
subroutine upxfem2(iparg, ixc, ngrouc, igrouc, iadc_crk, iel_crk, elcutc, ixtg, enrtag, inod_crk, iad_elem, fr_elem, iad_edge, fr_edge, fr_nbedge, crkedge)
Definition upxfem2.F:44