OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
subset_ini.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!|| subset_ini ../starter/source/model/group/subset_ini.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE subset_ini(SUBSET)
30C-----------------------------------------------
31C M o d u l e s
32C-----------------------------------------------
33 USE groupdef_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com04_c.inc"
43#include "tabsiz_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER LEN_IA
48!
49 TYPE (SUBSET_) , DIMENSION(NSUBS) :: SUBSET
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I,J,ID,ISU,NCHILD,NBPART,NBTPART,ICHILD,IPART,IPARTTOT,
54 . PARENT,LEVEL,TH_PART,L_SUB,THIAD
55 CHARACTER(LEN=NCHARTITLE) :: TITR
56C-----------------------------------------------
57!---
58! Size of SUBSET_ structure
59!---
60!
61 l_sub = 0
62 DO isu=1,nsubs
63! variables
64 id = subset(isu)%ID
65 l_sub = l_sub + 1
66 nchild = subset(isu)%NCHILD
67 l_sub = l_sub + 1
68 nbpart = subset(isu)%NPART
69 l_sub = l_sub + 1
70 nbtpart = subset(isu)%NTPART
71 l_sub = l_sub + 1
72 parent = subset(isu)%PARENT
73 l_sub = l_sub + 1
74 level = subset(isu)%LEVEL
75 l_sub = l_sub+1
76 thiad = subset(isu)%THIAD
77 l_sub = l_sub+1
78!! TH_FLAG = SUBSET(ISU)%TH_FLAG
79!! L_SUB = L_SUB+1
80!! TITR = SUBSET(ISU)%TITLE
81!! L_SUB = L_SUB+1
82!
83! arrays
84 l_sub = l_sub + nchild
85 l_sub = l_sub + nbpart
86 l_sub = l_sub + nbtpart
87 l_sub = l_sub + 10 ! /iTH (9) + /TH (1) -> SUBSET(I)%NVARTH(ITHFLAG)
88 ENDDO ! DO ISU=1,NSUBS
89!
90!---------
91 lensubs = l_sub
92!---------
93 RETURN
94 END
integer, parameter nchartitle
subroutine subset_ini(subset)
Definition subset_ini.F:30