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

Go to the source code of this file.

Functions/Subroutines

subroutine create_node_box (clause, itabm1, jclause, is_available, lsubmodel, ibox, x, skew, set_title, keyset)

Function/Subroutine Documentation

◆ create_node_box()

subroutine create_node_box ( type (set_) clause,
integer, dimension(numnod,2), intent(in) itabm1,
integer jclause,
logical is_available,
type(submodel_data), dimension(*), intent(in) lsubmodel,
type (box_), dimension(nbbox) ibox,
x,
skew,
character(len=nchartitle) set_title,
character(len=ncharfield) keyset )

Definition at line 37 of file create_node_box.F.

40C-----------------------------------------------
41C ROUTINE DESCRIPTION :
42C ===================
43C Create NODE Clause from BOX
44C------------------------------------------------------------------
45C DUMMY ARGUMENTS DESCRIPTION:
46C ===================
47C
48C NAME DESCRIPTION
49C
50C CLAUSE (SET structure) Clause to be treated
51C ITABM1 MAP Table UID -> LocalID
52C JCLAUSE parameter with HM_READER (current clause read)
53C IS_AVAILABLE Bool / Result of HM_interface
54C LSUBMODEL SUBMODEL Structure.
55C============================================================================
56C-----------------------------------------------
57C M o d u l e s
58C-----------------------------------------------
59 USE setdef_mod
60 USE submodel_mod
61 USE message_mod
65C-----------------------------------------------
66C I m p l i c i t T y p e s
67C-----------------------------------------------
68#include "implicit_f.inc"
69C-----------------------------------------------
70C C o m m o n B l o c k s
71C-----------------------------------------------
72#include "com04_c.inc"
73#include "param_c.inc"
74C-----------------------------------------------
75C D u m m y A r g u m e n t s
76C-----------------------------------------------
77 INTEGER JCLAUSE
78 LOGICAL :: IS_AVAILABLE
79 INTEGER, INTENT(IN), DIMENSION(NUMNOD,2) :: ITABM1
80 my_real x(3,*),skew(lskew,*)
81!
82 TYPE (SET_) :: CLAUSE
83 TYPE(SUBMODEL_DATA),INTENT(IN):: LSUBMODEL(*)!
84 TYPE (BOX_) , DIMENSION(NBBOX) :: IBOX
85 CHARACTER(LEN=NCHARFIELD) :: KEYSET
86 CHARACTER(LEN=NCHARTITLE) :: SET_TITLE
87C-----------------------------------------------
88C L o c a l V a r i a b l e s
89C-----------------------------------------------
90 INTEGER I,IDS,NINDX,LIST_SIZE,NODSYS,NINDX_B,NOD
91 INTEGER IDS_MAX, BOXLIST_SIZE,SZ_BOXNDS
92 INTEGER IWORK(70000)
93!
94 INTEGER, ALLOCATABLE, DIMENSION(:) :: BOXNDS,BOXLIST
95 .
96C
97! INTEGER SET_USRTOS
98! EXTERNAL SET_USRTOS
99C=======================================================================
100!
101 nindx_b = 0
102!
103 ALLOCATE(boxnds(numnod))
104 sz_boxnds = 0
105
106
107
108 ! Read Boxes
109 ! ---------------------
110
111 CALL hm_get_int_array_index('idsmax' ,ids_max ,jclause,is_available,lsubmodel) ! Get the numbers of boxes to read
112
113 ALLOCATE(boxlist(ids_max))
114 boxlist_size=0
115
116 CALL read_clause_box(ibox ,is_available ,lsubmodel ,jclause, ids_max ,
117 * boxlist, boxlist_size)
118
119!
120 ! Fill Boxes
121 ! ---------------------
122 CALL fill_clause_node_box( ibox ,x ,skew ,set_title ,keyset,
123 * boxlist, boxlist_size,
124 * boxnds, sz_boxnds )
125
126
127 ALLOCATE (clause%NODE(sz_boxnds))
128 clause%NODE(1:sz_boxnds) = boxnds(1:sz_boxnds)
129 clause%NB_NODE = sz_boxnds
130
131 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine fill_clause_node_box(ibox, x, skew, set_title, keyset, boxlist, boxlist_size, boxnds, sz_boxnds)
subroutine hm_get_int_array_index(name, ival, index, is_available, lsubmodel)
integer, parameter nchartitle
integer, parameter ncharfield
subroutine read_clause_box(ibox, is_available, lsubmodel, jclause, ids_max, boxlist, boxlist_size)