OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_subset_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_subset_str ../engine/source/output/restart/w_subset_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_subset_str(SUBSET)
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 (SUBSET_) , DIMENSION(NSUBS) :: SUBSET
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I,J,ID,ISU,NCHILD,NBPART,NBTPART,ICHILD,IPART,IPARTTOT,
58 . PARENT,LEVEL,TH_PART,L_SUB,ERR,ITITLE(LTITR),THIAD,IVARTH
59 CHARACTER(LEN=NCHARTITLE) :: TITR
60 INTEGER, ALLOCATABLE, DIMENSION (:) :: ISUB
61C-----------------------------------------------
62 DO isu=1,nsubs
63 titr = subset(isu)%TITLE
64 CALL fretitl(titr,ititle,ltitr)
65 CALL write_i_c(ititle,ltitr)
66 ENDDO ! DO ISU=1,NSUBS
67!
68 err = 0
69 ALLOCATE (isub(lensubs), stat=err)
70 isub(1:lensubs) = 0
71 l_sub = 0
72!
73 DO isu=1,nsubs
74 id = subset(isu)%ID
75 nchild = subset(isu)%NCHILD
76 nbpart = subset(isu)%NPART
77 nbtpart = subset(isu)%NTPART
78 parent = subset(isu)%PARENT
79 level = subset(isu)%LEVEL
80 thiad = subset(isu)%THIAD
81!! TH_FLAG = SUBSET(ISU)%TH_FLAG
82!! TITR = SUBSET(ISU)%TITLE
83!
84 isub(l_sub+1) = id
85 l_sub = l_sub+1
86 isub(l_sub+1) = nchild
87 l_sub = l_sub+1
88 isub(l_sub+1) = nbpart
89 l_sub = l_sub+1
90 isub(l_sub+1) = nbtpart
91 l_sub = l_sub+1
92 isub(l_sub+1) = parent
93 l_sub = l_sub+1
94 isub(l_sub+1) = level
95 l_sub = l_sub+1
96 isub(l_sub+1) = thiad
97 l_sub = l_sub+1
98!! ISUB(L_SUB+1) = TH_FLAG
99!! L_SUB = L_SUB+1
100! NOMBRE DE SUBSETS FILS
101 DO j=1,nchild
102 ichild = subset(isu)%CHILD(j)
103 isub(l_sub+1) = ichild
104 l_sub = l_sub+1
105 ENDDO
106! NOMBRE DE PARTS FILLES
107 DO j=1,nbpart
108 ipart = subset(isu)%PART(j)
109 isub(l_sub+1) = ipart
110 l_sub = l_sub+1
111 ENDDO
112! NOMBRE TOTAL DE PARTS (DESCENDANCE)
113 DO j=1,nbtpart
114 iparttot = subset(isu)%TPART(j)
115 isub(l_sub+1) = iparttot
116 l_sub = l_sub+1
117 ENDDO
118!---
119! - TIME HISTORY - /iTH (9) + /TH (1)
120!---
121 DO j=1,10
122 ivarth = subset(isu)%NVARTH(j)
123 isub(l_sub+1) = ivarth
124 l_sub = l_sub+1
125 ENDDO
126 ENDDO ! DO ISU=1,NSUBS
127!
128!---------
129 CALL write_i_c(isub,l_sub)
130!---------
131 DEALLOCATE (isub)
132!---------
133 RETURN
134 END
subroutine w_subset_str(subset)
integer, parameter nchartitle
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
void write_i_c(int *w, int *len)