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 ../starter/source/restart/ddsplit/w_subset_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_subset_str(SUBSET,LEN_IA)
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE groupdef_mod , ONLY : subset_
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
51 TYPE (SUBSET_) , DIMENSION(NSUBS) :: SUBSET
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I,J,ID,ISU,NCHILD,NBPART,NBTPART,ICHILD,IPART,IPARTTOT,
56 . PARENT,LEVEL,TH_PART,L_SUB,ERR,ITITLE(LTITR),IVARTH,THIAD
57 CHARACTER(LEN=NCHARTITLE) :: TITR
58 INTEGER, ALLOCATABLE, DIMENSION (:) :: ISUBSET
59C-----------------------------------------------
60 DO isu=1,nsubs
61 titr = subset(isu)%TITLE
62 CALL fretitl(titr,ititle,ltitr)
63 CALL write_i_c(ititle,ltitr)
64 ENDDO ! DO ISU=1,NSUBS
65 len_ia = len_ia + nsubs
66!
67 err = 0
68 ALLOCATE (isubset(lensubs), stat=err)
69 isubset(1:lensubs) = 0
70!
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 isubset(l_sub+1) = id
84 l_sub = l_sub+1
85 isubset(l_sub+1) = nchild
86 l_sub = l_sub+1
87 isubset(l_sub+1) = nbpart
88 l_sub = l_sub+1
89 isubset(l_sub+1) = nbtpart
90 l_sub = l_sub+1
91 isubset(l_sub+1) = parent
92 l_sub = l_sub+1
93 isubset(l_sub+1) = level
94 l_sub = l_sub+1
95 isubset(l_sub+1) = thiad
96 l_sub = l_sub+1
97!! ISUBSET(L_SUB+1) = TITR
98!! L_SUB = L_SUB+1
99! NOMBRE DE SUBSETS FILS
100 DO j=1,nchild
101 ichild = subset(isu)%CHILD(j)
102 isubset(l_sub+1) = ichild
103 l_sub = l_sub+1
104 ENDDO
105! nombre de parts filles
106 DO j=1,nbpart
107 ipart = subset(isu)%PART(j)
108 isubset(l_sub+1) = ipart
109 l_sub = l_sub+1
110 ENDDO
111! NOMBRE TOTAL DE PARTS (DESCENDANCE)
112 DO j=1,nbtpart
113 iparttot = subset(isu)%TPART(j)
114 isubset(l_sub+1) = iparttot
115 l_sub = l_sub+1
116 ENDDO
117!---
118! - TIME HISTORY - /iTH (9) + /TH (1)
119!---
120 DO j=1,10
121 ivarth = subset(isu)%NVARTH(j)
122 isubset(l_sub+1) = ivarth
123 l_sub = l_sub+1
124 ENDDO
125!----
126 ENDDO ! DO ISU=1,NSUBS
127!
128!---------
129 CALL write_i_c(isubset,l_sub)
130!---------
131 DEALLOCATE (isubset)
132!---------
133 len_ia = len_ia + l_sub
134!---------
135 RETURN
136 END
integer, parameter nchartitle
subroutine w_subset_str(subset, len_ia)
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
void write_i_c(int *w, int *len)