OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_xelem.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!|| hm_preread_xelem ../starter/source/elements/reader/hm_preread_xelem.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| ngr2usrn ../starter/source/system/nintrr.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
34 SUBROUTINE hm_preread_xelem(NUM,IGRNOD,LSUBMODEL)
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
101 END
subroutine hm_preread_xelem(num, igrnod, lsubmodel)
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