OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_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!|| w_islin_str ../starter/source/restart/ddsplit/w_islin_str.F
25!||--- called by ------------------------------------------------------
26!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
27!||--- calls -----------------------------------------------------
28!|| fretitl ../starter/source/starter/freform.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE w_islin_str(IGRSLIN ,LEN_IA ,PROC, NODLOCAL)
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE groupdef_mod , ONLY : surf_
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 "scr17_c.inc"
46#include "tabsiz_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER LEN_IA,PROC,NODLOCAL(*)
51!
52 TYPE (SURF_) , DIMENSION(NSLIN) :: IGRSLIN
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER ISU,I,J,K,ERR,NSEG,ELTYP,ELEM,P,
57 . L_SLIN,ID,TYPE,LEVEL,NSEG_R2R_ALL,
58 . NSEG_R2R_SHARE,NOD,ITITLE(LTITR),NSEG_L(NSLIN)
59 CHARACTER(LEN=NCHARTITLE) :: TITR
60 INTEGER, ALLOCATABLE, DIMENSION (:) :: IGRSLIN_L
61C-----------------------------------------------
62!=======================================================================
63 DO isu=1,nslin
64 titr = igrslin(isu)%TITLE
65 CALL fretitl(titr,ititle,ltitr)
66 CALL write_i_c(ititle,ltitr)
67 ENDDO ! DO ISU=1,NSLIN
68 len_ia = len_ia + nslin
69 err = 0
70 ALLOCATE (igrslin_l(lenislin), stat=err)
71 igrslin_l(1:lenislin) = 0
72!
73! COUNT LOCAL SEGMENTS "NSEG_L"
74!
75 DO isu=1,nslin
76 nseg = igrslin(isu)%NSEG
77 nseg_l(isu) = 0
78 DO j=1,nseg
79 p = igrslin(isu)%PROC(j)
80 IF (p == proc +1) THEN
81 nseg_l(isu) = nseg_l(isu) + 1
82 ENDIF ! IF (P == PROC +1)
83 ENDDO ! DO J=1,NSEG
84 ENDDO ! DO ISU=1,NSLIN
85!
86 l_slin = 0
87!
88 DO isu=1,nslin
89 id = igrslin(isu)%ID
90 nseg = igrslin(isu)%NSEG
91 TYPE = igrslin(isu)%TYPE
92 level = igrslin(isu)%LEVEL
93 nseg_r2r_all = igrslin(isu)%NSEG_R2R_ALL
94 nseg_r2r_share = igrslin(isu)%NSEG_R2R_SHARE
95!
96! line storage
97!
98 igrslin_l(l_slin+1) = id
99 l_slin = l_slin+1
100 igrslin_l(l_slin+1) = nseg_l(isu)
101 l_slin = l_slin+1
102 igrslin_l(l_slin+1) = TYPE
103 l_slin = l_slin+1
104 igrslin_l(l_slin+1) = level
105 l_slin = l_slin+1
106 igrslin_l(l_slin+1) = nseg_r2r_all
107 l_slin = l_slin+1
108 igrslin_l(l_slin+1) = nseg_r2r_share
109 l_slin = l_slin+1
110!
111! LINE ENTITIES (NODES, PROC, ELTYP, ELEM)
112!
113 DO j=1,nseg
114 p = igrslin(isu)%PROC(j)
115 eltyp = igrslin(isu)%ELTYP(j)
116 elem = igrslin(isu)%ELEM(j)
117 IF (p == proc +1) THEN
118 DO k=1,2
119 nod = igrslin(isu)%NODES(j,k)
120 l_slin = l_slin+1
121 ENDDO
122 igrslin_l(l_slin+1) = p
123 l_slin = l_slin+1
124 igrslin_l(l_slin+1) = eltyp
125 l_slin = l_slin+1
126 igrslin_l(l_slin+1) = elem
127 l_slin = l_slin+1
128 ENDIF ! IF (P == PROC +1)
129 ENDDO ! DO J=1,NSEG
130 ENDDO ! DO ISU=1,NSLIN
131!---------
132 CALL write_i_c(igrslin_l,l_slin)
133!---------
134 DEALLOCATE (igrslin_l)
135!---------
136 len_ia = len_ia + l_slin
137!---------
138 RETURN
139 END
integer, parameter nchartitle
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
subroutine w_islin_str(igrslin, len_ia, proc, nodlocal)
Definition w_islin_str.F:32
void write_i_c(int *w, int *len)