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

Go to the source code of this file.

Functions/Subroutines

subroutine surftage (numel, ix, nix, nix1, nix2, ieltyp, tagbuf, isu, nseg, flag, indx, nindx, nseg_tot)

Function/Subroutine Documentation

◆ surftage()

subroutine surftage ( integer numel,
integer, dimension(nix,*) ix,
integer nix,
integer nix1,
integer nix2,
integer ieltyp,
integer, dimension(*) tagbuf,
type (surf_) isu,
integer nseg,
integer flag,
integer, dimension(*) indx,
integer nindx,
integer nseg_tot )

Definition at line 30 of file surftage.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE groupdef_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER NIX,IX(NIX,*),NIX1,NIX2,NUMEL,IELTYP,
45 . TAGBUF(*),NSEG,FLAG,INDX(*),NINDX,NSEG_TOT
46!
47 TYPE (SURF_) :: ISU
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER JJ,K,II,INV4(4),INV3(3)
52 DATA inv4/4,3,2,1/
53 DATA inv3/3,2,1/
54C=======================================================================
55 nseg=nseg+nindx
56!
57 IF (flag == 1) THEN
58 DO ii = 1, nindx
59 jj=indx(ii)
60 nseg_tot = nseg_tot + 1
61 IF(tagbuf(jj) == 1)THEN
62 DO k=nix1,nix2
63 isu%NODES(nseg_tot,k-1) = ix(k,jj)
64 ENDDO
65 ELSEIF(tagbuf(jj) == -1)THEN
66 IF (ieltyp == 3) THEN
67 DO k=nix2,nix1,-1
68 isu%NODES(nseg_tot,inv4(k-1)) = ix(k,jj)
69 ENDDO
70 ELSEIF (ieltyp == 7) THEN
71 DO k=nix2,nix1,-1
72 isu%NODES(nseg_tot,inv3(k-1)) = ix(k,jj)
73 ENDDO
74 ENDIF ! IF (IELTYP == 3)
75 ENDIF
76 IF(nix2-nix1 == 2)THEN
77 isu%NODES(nseg_tot,4) = isu%NODES(nseg_tot,3)
78 ENDIF
79 isu%ELTYP(nseg_tot) = ieltyp
80 isu%ELEM(nseg_tot) = jj
81 ENDDO
82 ENDIF
83C-----------
84 RETURN
subroutine inv3(a, b)
Definition inv3.F:29