OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
read_clause_box.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine read_clause_box (ibox, is_available, lsubmodel, jclause, ids_max, boxlist, boxlist_size)

Function/Subroutine Documentation

◆ read_clause_box()

subroutine read_clause_box ( type (box_), dimension(nbbox) ibox,
logical is_available,
type(submodel_data), dimension(*), intent(in) lsubmodel,
integer jclause,
integer ids_max,
integer, dimension(*) boxlist,
integer boxlist_size )

Definition at line 36 of file read_clause_box.F.

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
subroutine hm_get_int_array_2indexes(name, ival, index1, index2, is_available, lsubmodel)