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

Go to the source code of this file.

Functions/Subroutines

subroutine c_islin_str (igrslin, proc, lenislin_l)

Function/Subroutine Documentation

◆ c_islin_str()

subroutine c_islin_str ( type (surf_), dimension(nslin) igrslin,
integer proc,
integer lenislin_l )

Definition at line 29 of file c_islin_str.F.

30C-----------------------------------------------
31C M o d u l e s
32C-----------------------------------------------
33 USE groupdef_mod
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com04_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER PROC,LENISLIN_L
46!
47 TYPE (SURF_) , DIMENSION(NSLIN) :: IGRSLIN
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER ISU,I,J,K,NSEG,ELTYP,ELEM,
52 . L_SLIN,ID,TYPE,LEVEL,TH_SURF,NSEG_R2R_ALL,
53 . NSEG_R2R_SHARE,P
54C-----------------------------------------------
55!
56! COUNT LOCAL SEGMENTS "NSEG_L"
57!
58 l_slin = 0
59!
60 DO isu=1,nslin
61 id = igrslin(isu)%ID
62 nseg = igrslin(isu)%NSEG
63 TYPE = igrslin(isu)%TYPE
64 level = igrslin(isu)%LEVEL
65 nseg_r2r_all = igrslin(isu)%NSEG_R2R_ALL
66 nseg_r2r_share = igrslin(isu)%NSEG_R2R_SHARE
67!
68! surf storage
69!
70! IGRSLIN_L(L_SLIN+1) = ID
71 l_slin = l_slin+1
72! IGRSLIN_L(L_SLIN+1) = NSEG_L(ISU)
73 l_slin = l_slin+1
74! IGRSLIN_L(L_SLIN+1) = TYPE
75 l_slin = l_slin+1
76! IGRSLIN_L(L_SLIN+1) = LEVEL
77 l_slin = l_slin+1
78! IGRSLIN_L(L_SLIN+1) = NSEG_R2R_ALL
79 l_slin = l_slin+1
80! IGRSLIN_L(L_SLIN+1) = NSEG_R2R_SHARE
81 l_slin = l_slin+1
82!
83! LINE ENTITIES (NODES, ELTYP, ELEM)
84!
85 DO j=1,nseg
86 p = igrslin(isu)%PROC(j)
87 IF (p == proc +1) THEN
88 DO k=1,2
89! NOD = IGRSLIN(ISU)%NODES(J,K)
90! IF(NOD > 0)THEN;IGRSLIN_L(L_SLIN+1) = NODLOCAL(NOD)
91! ELSE; IGRSLIN_L(L_SLIN+1) = 0
92! ENDIF
93 l_slin = l_slin+1
94 ENDDO
95! IGRSLIN_L(L_SLIN+1) = PROC
96 l_slin = l_slin+1
97! IGRSLIN_L(L_SLIN+1) = ELTYP
98 l_slin = l_slin+1
99! IGRSLIN_L(L_SLIN+1) = CEL(ELEM)
100 l_slin = l_slin+1
101 ENDIF ! IF (P == PROC +1)
102 ENDDO ! DO J=1,NSEG
103 ENDDO ! DO ISU=1,NSLIN
104!---------
105 lenislin_l = l_slin
106!---------
107 RETURN
initmumps id