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

Go to the source code of this file.

Functions/Subroutines

subroutine create_elt_box (clause, iparte, jclause, is_available, lsubmodel, ibox, x, skew, set_title, keyset, boxtype, numel, nix, ix, nix1, ipart, eltree, klevtree, keltree, eltyp)

Function/Subroutine Documentation

◆ create_elt_box()

subroutine create_elt_box ( type (set_) clause,
integer, dimension(*) iparte,
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,
integer boxtype,
integer numel,
integer nix,
integer, dimension(nix,*) ix,
integer nix1,
integer, dimension(lipart1,*) ipart,
integer, dimension(keltree,*) eltree,
integer klevtree,
integer keltree,
integer eltyp )

Definition at line 38 of file create_elt_box.F.

43C-----------------------------------------------
44C ROUTINE DESCRIPTION :
45C ===================
46C Create NODE Clause from BOX
47C------------------------------------------------------------------
48C DUMMY ARGUMENTS DESCRIPTION:
49C ===================
50C
51C NAME DESCRIPTION
52C
53C CLAUSE (SET structure) Clause to be treated
54C JCLAUSE parameter with HM_READER (current clause read)
55C IS_AVAILABLE Bool / Result of HM_interface
56C LSUBMODEL SUBMODEL Structure.
57C============================================================================
58C-----------------------------------------------
59C M o d u l e s
60C-----------------------------------------------
61 USE setdef_mod
62 USE submodel_mod
63 USE message_mod
67C-----------------------------------------------
68C I m p l i c i t T y p e s
69C-----------------------------------------------
70#include "implicit_f.inc"
71C-----------------------------------------------
72C C o m m o n B l o c k s
73C-----------------------------------------------
74#include "com04_c.inc"
75#include "param_c.inc"
76#include "scr17_c.inc"
77C-----------------------------------------------
78C D u m m y A r g u m e n t s
79C-----------------------------------------------
80 INTEGER JCLAUSE,BOXTYPE,NIX,NIX1,KLEVTREE,KELTREE,NUMEL,ELTYP
81 LOGICAL :: IS_AVAILABLE
82 INTEGER IPARTE(*),IPART(LIPART1,*),IX(NIX,*),ELTREE(KELTREE,*)
83 my_real x(3,*),skew(lskew,*)
84 TYPE (SET_) :: CLAUSE
85 TYPE(SUBMODEL_DATA),INTENT(IN):: LSUBMODEL(*)!
86 TYPE (BOX_) , DIMENSION(NBBOX) :: IBOX
87 CHARACTER(LEN=NCHARFIELD) :: KEYSET
88 CHARACTER(LEN=NCHARTITLE) :: SET_TITLE
89C-----------------------------------------------
90C L o c a l V a r i a b l e s
91C-----------------------------------------------
92 INTEGER I,IDS,LIST_SIZE,NINDX_B
93 INTEGER IDS_MAX, BOXLIST_SIZE,SZ_BOXELTS
94!
95 INTEGER, ALLOCATABLE, DIMENSION(:) :: BOXELTS,BOXLIST
96C=======================================================================
97!
98 nindx_b = 0
99!
100 ALLOCATE(boxelts(numel))
101 sz_boxelts = 0
102
103
104
105 ! Read Boxes
106 ! ---------------------
107
108 CALL hm_get_int_array_index('idsmax' ,ids_max ,jclause,is_available,lsubmodel) ! Get the numbers of boxes to read
109
110 ALLOCATE(boxlist(ids_max))
111 boxlist_size=0
112
113 CALL read_clause_box(ibox ,is_available ,lsubmodel ,jclause, ids_max ,
114 * boxlist, boxlist_size)
115
116!
117 ! Fill Boxes
118 ! ---------------------
120 * ibox ,x ,skew ,set_title ,keyset ,
121 * boxlist ,boxlist_size,boxelts ,sz_boxelts,boxtype,
122 * nix ,ix ,nix1 ,iparte ,ipart ,
123 * eltree ,klevtree ,keltree ,numel )
124
125 CALL copy_list_in_cause(clause,eltyp,boxelts,sz_boxelts)
126
127 DEALLOCATE(boxelts)
128 DEALLOCATE(boxlist)
129
130 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine copy_list_in_cause(clause, eltyp, sorted_list, list_size)
subroutine fill_clause_elt_box(ibox, x, skew, set_title, keyset, boxlist, boxlist_size, boxelts, sz_boxelts, boxtype, nix, ix, nix1, iparte, ipart, eltree, klevtree, keltree, numel)
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)