OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
gr_entity_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!|| gr_entity_ini ../starter/source/model/group/gr_entity_ini.F
25!||--- called by ------------------------------------------------------
26!|| group_ini ../starter/source/model/group/group_ini.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE gr_entity_ini(IGR,NGR,LENGROUP)
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-----------------------------------------------
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NGR,LENGROUP
46!
47 TYPE(group_) ,DIMENSION(NGR) :: IGR
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,J,ID,IGU,NENTITY,GRTYPE,TRI,GRPGRP,LEVEL,R2R_ALL,
52 . R2R_SHARE,L_GROUP
53 CHARACTER(LEN=NCHARTITLE) :: TITR
54C-----------------------------------------------
55!---
56! Size of SUBSET_ structure
57!---
58!
59 l_group = 0
60 DO igu=1,ngr
61! variables
62 id = igr(igu)%ID
63 l_group = l_group + 1
64 nentity = igr(igu)%NENTITY
65 l_group = l_group + 1
66 grtype = igr(igu)%GRTYPE
67 l_group = l_group + 1
68 tri = igr(igu)%SORTED
69 l_group = l_group + 1
70 grpgrp = igr(igu)%GRPGRP
71 l_group = l_group + 1
72 level = igr(igu)%LEVEL
73 l_group = l_group+1
74! TITR = IGR(IGU)%TITLE
75! L_GROUP = L_GROUP+1
76 r2r_all = igr(igu)%R2R_ALL
77 l_group = l_group+1
78 r2r_share = igr(igu)%R2R_SHARE
79 l_group = l_group+1
80! arrays
81 l_group = l_group + nentity ! IGR(IGR)%ENTITY(NENTITY)
82 ENDDO ! DO IGU=1,NGR
83!
84!---------
85 lengroup = l_group
86!---------
87 RETURN
88 END
subroutine gr_entity_ini(igr, ngr, lengroup)
integer, parameter nchartitle