OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
groups_get_elem_list.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!||====================================================================
25!|| groups_get_elem_list ../starter/source/groups/groups_get_elem_list.F
26!||--- called by ------------------------------------------------------
27!|| hm_admlcnt ../starter/source/groups/hm_admlistcnt.F
28!|| hm_grogro ../starter/source/groups/hm_grogro.F
29!|| hm_grogronod ../starter/source/groups/hm_grogronod.F
30!|| hm_lecgre ../starter/source/groups/hm_lecgre.F
31!|| hm_submodgre ../starter/source/groups/hm_submodgr.F
32!|| hm_submodgrn ../starter/source/groups/hm_submodgr.F
33!|| hm_submodpart ../starter/source/groups/hm_submodpart.F
34!|| hm_surfgr2 ../starter/source/groups/hm_surfgr2.F
35!|| hm_tagpart ../starter/source/groups/hm_tagpart.F
36!|| hm_tagpart2 ../starter/source/groups/hm_tagpart2.F
37!||--- calls -----------------------------------------------------
38!|| hm_get_int_array_index ../starter/source/devtools/hm_reader/hm_get_int_array_index.F
39!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
40!||--- uses -----------------------------------------------------
41!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
42!|| message_mod ../starter/share/message_module/message_mod.F
43!|| submodel_mod ../starter/share/modules1/submodel_mod.F
44!||====================================================================
45 SUBROUTINE groups_get_elem_list(LIST_ENTITY,NENTITY,LSUBMODEL)
46C-----------------------------------------------
47C M o d u l e s
48C-----------------------------------------------
49 USE message_mod
51 USE submodel_mod
52C-----------------------------------------------
53C I m p l i c i t T y p e s
54C-----------------------------------------------
55#include "implicit_f.inc"
56C-----------------------------------------------
57C D u m m y A r g u m e n t s
58C-----------------------------------------------
59 INTEGER,INTENT(INOUT) :: NENTITY
60 INTEGER,INTENT(INOUT),ALLOCATABLE,DIMENSION(:) :: LIST_ENTITY
61 TYPE(submodel_data) LSUBMODEL(NSUBMOD)
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER NENTITY_POS,NENTITY_NEG,JJ,KK
66 LOGICAL IS_AVAILABLE, IS_ENCRYPTED
67C-----------------------------------------------
68C CONSTITUTION DE LIST
69C-----------------------------------------------
70 CALL hm_get_intv ('idsmax' ,nentity_pos,is_available,lsubmodel)
71 CALL hm_get_intv ('negativeIdsmax' ,nentity_neg,is_available,lsubmodel)
72 nentity = nentity_pos + nentity_neg
73 ALLOCATE(list_entity(nentity))
74 DO kk=1,nentity_pos
75 CALL hm_get_int_array_index ('ids' ,jj ,kk,is_available,lsubmodel)
76 list_entity(kk)=jj
77 ENDDO
78 DO kk=1,nentity_neg
79 CALL hm_get_int_array_index ('negativeIds' ,jj ,kk,is_available,lsubmodel)
80 list_entity(nentity_pos+kk)=-jj
81 ENDDO
82C-----------------------
83
84 RETURN
85 END
subroutine groups_get_elem_list(list_entity, nentity, lsubmodel)
subroutine hm_get_int_array_index(name, ival, index, is_available, lsubmodel)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)