OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
read_clause_box.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!|| read_clause_box ../starter/source/model/sets/read_clause_box.F
25!||--- called by ------------------------------------------------------
26!|| create_elt_box ../starter/source/model/sets/create_elt_box.F
27!|| create_node_box ../starter/source/model/sets/create_node_box.F
28!|| create_rbody_box ../starter/source/model/sets/create_rbody_box.F
29!||--- calls -----------------------------------------------------
30!|| hm_get_int_array_2indexes ../starter/source/devtools/hm_reader/hm_get_int_array_2indexes.F
31!||--- uses -----------------------------------------------------
32!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
33!|| message_mod ../starter/share/message_module/message_mod.F
34!|| submodel_mod ../starter/share/modules1/submodel_mod.F
35!||====================================================================
36 SUBROUTINE read_clause_box(IBOX, IS_AVAILABLE, LSUBMODEL, JCLAUSE , IDS_MAX,
37 . BOXLIST, BOXLIST_SIZE)
38C-----------------------------------------------
39C ROUTINE DESCRIPTION :
40C ===================
41C Read the Box clause
42C Creates a list of Box
43C------------------------------------------------------------------
44C DUMMY ARGUMENTS DESCRIPTION:
45C ===================
46C
47C NAME DESCRIPTION
48C
49C IBOX _BOX Structure - list of boxes
50C IS_AVAILABLE Bool, needs to read input
51C LSUBMODEL SUBMODEL Structure
52C JCLAUSE Current clause number
53C IDS_MAX MAX Number of clauses
54C BOXLIST OUTPUT / List of Boxes
55C BOXLIST_SIZE OUTPUT / SIZE of BOXLIST
56C============================================================================
57C-----------------------------------------------
58C M o d u l e s
59C-----------------------------------------------
60 USE message_mod
62 USE submodel_mod
64C-----------------------------------------------
65C I m p l i c i t T y p e s
66C-----------------------------------------------
67#include "implicit_f.inc"
68C-----------------------------------------------
69C C o m m o n B l o c k s
70C-----------------------------------------------
71#include "com04_c.inc"
72C-----------------------------------------------
73C D u m m y A r g u m e n t s
74C-----------------------------------------------
75 INTEGER JCLAUSE,BOXLIST_SIZE,IDS_MAX
76 INTEGER BOXLIST(*)
77 LOGICAL :: IS_AVAILABLE
78!
79 TYPE (BOX_) , DIMENSION(NBBOX) :: IBOX
80C-----------------------------------------------
81 TYPE(submodel_data),INTENT(IN):: LSUBMODEL(*)
82C-----------------------------------------------
83C L o c a l V a r i a b l e s
84C-----------------------------------------------
85 INTEGER K,IB,IDBOX,IDS
86C=======================================================================
87 ! Read Boxes
88 ! ---------------------
89 boxlist_size = 0
90 DO k=1,ids_max
91 CALL hm_get_int_array_2indexes('ids',ids,jclause,k,is_available,lsubmodel)
92 IF (ids /= 0) THEN
93 DO ib=1,nbbox
94 idbox = ibox(ib)%ID
95 IF (ids == idbox) THEN
96 ! tag boxes
97 boxlist_size = boxlist_size + 1
98 boxlist(boxlist_size) = ib
99 ENDIF
100 ENDDO
101 ENDIF ! IF (IDS /= 0)
102 ENDDO ! DO K=1,IDS_MAX
103C-------------------------
104 RETURN
105 END
subroutine hm_get_int_array_2indexes(name, ival, index1, index2, is_available, lsubmodel)
subroutine read_clause_box(ibox, is_available, lsubmodel, jclause, ids_max, boxlist, boxlist_size)