OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_line_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_line_str ../engine/source/output/restart/w_line_str.F
25!||--- called by ------------------------------------------------------
26!|| wrrestp ../engine/source/output/restart/wrrestp.F
27!||--- calls -----------------------------------------------------
28!|| fretitl ../engine/source/input/freform.F
29!|| write_i_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| groupdef_mod ../common_source/modules/groupdef_mod.F
32!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
33!||====================================================================
34 SUBROUTINE w_line_str(IGRSLIN)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE groupdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com04_c.inc"
48#include "scr17_c.inc"
49#include "tabsiz_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 TYPE (SURF_) , DIMENSION(NSLIN) :: IGRSLIN
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER ISU,I,J,K,ERR,L_SLIN,ID,NSEG,TYPE,PROC,
58 . LEVEL,NSEG_R2R_ALL,NSEG_R2R_SHARE,
59 . NODE,ELTYP,ELEM,ITITLE(LTITR)
60 CHARACTER(LEN=NCHARTITLE) :: TITR
61 INTEGER, ALLOCATABLE, DIMENSION (:) :: ISLINI
62C-----------------------------------------------
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!
69 err = 0
70 ALLOCATE (islini(lenislin), stat=err)
71 islini(1:lenislin) = 0
72 l_slin = 0
73!
74 DO isu=1,nslin
75 id = igrslin(isu)%ID
76 nseg = igrslin(isu)%NSEG
77 TYPE = igrslin(isu)%TYPE
78 level = igrslin(isu)%LEVEL
79 nseg_r2r_all = igrslin(isu)%NSEG_R2R_ALL
80 nseg_r2r_share = igrslin(isu)%NSEG_R2R_SHARE
81!
82 islini(l_slin+1) = id
83 l_slin = l_slin+1
84 islini(l_slin+1) = nseg
85 l_slin = l_slin+1
86 islini(l_slin+1) = TYPE
87 l_slin = l_slin+1
88 islini(l_slin+1) = level
89 l_slin = l_slin+1
90 islini(l_slin+1) = nseg_r2r_all
91 l_slin = l_slin+1
92 islini(l_slin+1) = nseg_r2r_share
93 l_slin = l_slin+1
94!
95! line entities(nodes, proc, eltyp, elem)
96!
97 DO j=1,nseg
98 DO k=1,2
99 node = igrslin(isu)%NODES(j,k)
100 islini(l_slin+1) = node
101 l_slin = l_slin+1
102 ENDDO
103 proc = igrslin(isu)%PROC(j)
104 islini(l_slin+1) = proc
105 l_slin = l_slin+1
106 eltyp = igrslin(isu)%ELTYP(j)
107 islini(l_slin+1) = eltyp
108 l_slin = l_slin+1
109 elem = igrslin(isu)%ELEM(j)
110 islini(l_slin+1) = elem
111 l_slin = l_slin+1
112 ENDDO
113 ENDDO ! DO ISU=1,NSLIN
114!
115!---------
116 CALL write_i_c(islini,l_slin)
117!---------
118 DEALLOCATE (islini)
119!---------
120 RETURN
121 END
integer, parameter nchartitle
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
subroutine w_line_str(igrslin)
Definition w_line_str.F:35
void write_i_c(int *w, int *len)