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

Go to the source code of this file.

Functions/Subroutines

subroutine hm_preread_xelem (num, igrnod, lsubmodel)

Function/Subroutine Documentation

◆ hm_preread_xelem()

subroutine hm_preread_xelem ( integer, intent(out) num,
type(group_), dimension(ngrnod), intent(in) igrnod,
type(submodel_data), dimension(*), intent(in) lsubmodel )

Definition at line 34 of file hm_preread_xelem.F.

35C-----------------------------------------------
36C ROUTINE DESCRIPTION :
37C ===================
38C PRE READ /XELEM ELEMENTS USING HM_READER
39C-----------------------------------------------
40C DUMMY ARGUMENTS DESCRIPTION:
41C ===================
42C
43C NAME DESCRIPTION
44C
45C NUM TOTAL NODE NUMBERS
46C IGRNOD NODE GROUP ARRAY
47C LSUBMODEL SUBMODEL STRUCTURE
48C-----------------------------------------------
49C M o d u l e s
50C-----------------------------------------------
51 USE message_mod
52 USE submodel_mod
53 USE groupdef_mod
54C----------------------------------------------------------
55C PREREAD XELEM ELEMENT
56C----------------------------------------------------------
57C-----------------------------------------------
58C I m p l i c i t T y p e s
59C-----------------------------------------------
60#include "implicit_f.inc"
61C-----------------------------------------------
62C C o m m o n B l o c k s
63C-----------------------------------------------
64#include "com04_c.inc"
65C-----------------------------------------------
66C D u m m y A r g u m e n t s
67C-----------------------------------------------
68C INPUT ARGUMENTS
69 TYPE(GROUP_),INTENT(IN)::IGRNOD(NGRNOD)
70 TYPE(SUBMODEL_DATA),INTENT(IN)::LSUBMODEL(*)
71C OUTPUT ARGUMENTS
72 INTEGER,INTENT(OUT)::NUM
73C-----------------------------------------------
74C L o c a l V a r i a b l e s
75C-----------------------------------------------
76 INTEGER I,NN,IGU(NUMELX),IGS,STAT
77 INTEGER, DIMENSION(:), ALLOCATABLE :: SUB_XELEM
78C-----------------------------------------------
79C E x t e r n a l F u n c t i o n s
80C-----------------------------------------------
81 INTEGER NGR2USRN
82C=======================================================================
83C--------------------------------------------------
84C ALLOCS & INITS
85C--------------------------------------------------
86 ALLOCATE (sub_xelem(numelx),stat=stat)
87 IF (stat /= 0) CALL ancmsg(msgid=268,anmode=aninfo,
88 . msgtype=msgerror,
89 . c1='SUB_XELEM')
90 sub_xelem(1:numelx) = 0
91C--------------------------------------------------
92 num = 0
93 CALL cpp_xelem_preread(igu,sub_xelem)
94C--------------------------------------------------
95 DO i=1,numelx
96 igs = ngr2usrn(igu(i),igrnod,ngrnod,nn)
97 num = num + nn
98 ENDDO
99C-------------------------------------
100 RETURN
integer function ngr2usrn(iu, igrnod, ngrnod, num)
Definition nintrr.F:407
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889