OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_islin_str.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!|| c_islin_str ../starter/source/restart/ddsplit/c_islin_str.F
25!||--- called by ------------------------------------------------------
26!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE c_islin_str(IGRSLIN ,PROC, LENISLIN_L)
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
108 END
subroutine c_islin_str(igrslin, proc, lenislin_l)
Definition c_islin_str.F:30