OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_crkadd.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "com_xfem1.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine c_crkadd (elcutc, nodenr, kxfenod2elc, enrtag, elcutc_l, nodenr_l, kxfenod2elc_l, enrtag_l, numelc_l, numeltg_l, numnod_l, nodglob, inod_crkxfem, p, cep, elcuttg_l, incrkxfem_l, index_crkxfem)

Function/Subroutine Documentation

◆ c_crkadd()

subroutine c_crkadd ( integer, dimension(2,*) elcutc,
integer, dimension(*) nodenr,
integer, dimension(*) kxfenod2elc,
integer, dimension(numnod,*) enrtag,
integer, dimension(2,*) elcutc_l,
integer, dimension(*) nodenr_l,
integer, dimension(*) kxfenod2elc_l,
integer, dimension(numnod_l,*) enrtag_l,
integer numelc_l,
integer numeltg_l,
integer numnod_l,
integer, dimension(*) nodglob,
integer, dimension(*) inod_crkxfem,
integer p,
integer, dimension(*) cep,
integer, dimension(2,*) elcuttg_l,
integer, dimension(*) incrkxfem_l,
integer, dimension(*) index_crkxfem )

Definition at line 29 of file c_crkadd.F.

34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com04_c.inc"
45#include "com_xfem1.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER ELCUTC(2,*),NODENR(*),KXFENOD2ELC(*),ENRTAG(NUMNOD,*),
50 . ELCUTC_L(2,*),NODENR_L(*),
51 . KXFENOD2ELC_L(*),ENRTAG_L(NUMNOD_L,*),
52 . NUMELC_L,NUMELTG_L,NCRKXFE_L,NUMNOD_L,NODGLOB(*),
53 . INOD_CRKXFEM(*),P,CEP(*),ELCUTTG_L(2,*),INCRKXFEM_L(*),
54 . INDEX_CRKXFEM(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I,J,PROC,OFFC,OFFTG,NOD,NOD_CRK,IEL_L,NL_L
59C-----------------------------------------------
60 offc = numels + numelq
61 offtg = offc + numelc + numelt + numelp + numelr
62C
63 iel_l = 0
64 DO i=1,numelc
65 IF (cep(i+offc) == p) THEN
66 iel_l = iel_l + 1
67 DO j=1,2
68 elcutc_l(j,iel_l) = elcutc(j,i)
69 ENDDO
70 ENDIF
71 ENDDO
72C
73 iel_l = 0
74 DO i=1,numeltg
75 IF (cep(i+offtg) == p) THEN
76 iel_l = iel_l + 1
77 DO j=1,2
78 elcuttg_l(j,iel_l) = elcutc(j,i+numelc)
79 ENDDO
80 ENDIF
81 ENDDO
82C---
83 nl_l = 0
84 DO i=1,numnod_l
85 nod = nodglob(i)
86cc IF (NOD > 0 .and. INOD_CRKXFEM(NOD) > 0) THEN
87 IF (incrkxfem_l(i) > 0) THEN
88 nl_l = nl_l + 1
89 nod_crk = inod_crkxfem(nod)
90 nodenr_l(nl_l) = nodenr(nod_crk)
91 kxfenod2elc(nl_l) = kxfenod2elc(nod_crk)
92 ENDIF
93c
94c or even:
95c
96c NL_L = INCRKXFEM_L(I)
97c IF(NL_L > 0)THEN
98c NOD_CRK = INDEX_CRKXFEM(NL_L)
99c NODENR_L(NL_L) = NODENR(NOD_CRK)
100c KXFENOD2ELC(NL_L) = KXFENOD2ELC(NOD_CRK)
101c ENDIF
102 DO j=1,ienrnod
103 enrtag_l(i,j) = enrtag(nod,j)
104 ENDDO
105 ENDDO
106C-----------
107 RETURN