OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
lecstat.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!|| lecstat ../engine/source/input/lecstat.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../engine/source/input/lectur.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../engine/source/output/message/message.F
29!|| arret ../engine/source/system/arret.F
30!||--- uses -----------------------------------------------------
31!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.f90
32!|| mat_elem_mod ../common_source/modules/mat_elem/mat_elem_mod.F90
33!|| message_mod ../engine/share/message_module/message_mod.F
34!||====================================================================
35 SUBROUTINE lecstat(IPART ,IPART_STATE,ELBUF_TAB,IPM,IPARG,
36 . IPARTS,IPARTC ,IPARTG,MAT_PARAM)
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
41 USE mat_elem_mod
42 USE elbufdef_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "com01_c.inc"
51#include "com04_c.inc"
52#include "param_c.inc"
53#include "units_c.inc"
54#include "scr16_c.inc"
55#include "scr17_c.inc"
56C-----------------------------------------------
57C D u m m y A r g u m e n t s
58C-----------------------------------------------
59 INTEGER IPART(LIPART1,*),IPART_STATE(*),IPARTS(*),IPARTC(*),IPARTG(*)
60 INTEGER,INTENT(INOUT) :: IPM(NPROPMI,NUMMAT),IPARG(NPARG,*)
61C REAL
62 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
63 TYPE (MATPARAM_STRUCT_) ,DIMENSION(NUMMAT) ,INTENT(INOUT) :: MAT_PARAM
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER I,IDPRT,K_STAT,J,IP,IPID,IGTYP,
68 . ifail,nlay,fail_id,mat_id,il,imat,
69 . nfail,ng,ity,nft,iprt
70 INTEGER MAT_CHECKED(NUMMAT)
71C-----------------------------------------------
72 iprt = 0
73 IF (nstatprt /= 0) THEN
74 mat_checked = 0
75 DO i=1,nstatprt
76 READ(iin,'(I10)') idprt
77 ip=0
78 DO j=1,npart
79 IF (ipart(4,j) == idprt)ip=j
80 ENDDO
81 IF (ip == 0) THEN
82 CALL ancmsg(msgid=119,anmode=aninfo,i1=idprt)
83 CALL arret(2)
84 ENDIF ! IF (IP==0)
85 ipart_state(ip)=1
86 !-------------
87 ! for /INISHE/FAIL, fail_ID in /FAIL card is mandatory
88 ! check if fail_ID is defined in failure model
89 !-------------
90 IF ( stat_c(8) == 1) THEN
91!---
92 DO ng=1,ngroup
93 ity = iparg(5,ng)
94 nft = iparg(3,ng)
95 ipid=ipart(2,ip) ! internal
96 IF (ity == 1 .or. ity == 3 .or. ity == 7) THEN
97 IF (ity == 1) iprt=iparts(1+nft)
98 IF (ity == 3) iprt=ipartc(1+nft)
99 IF (ity == 7) iprt=ipartg(1+nft)
100 IF ( iprt /= ip ) cycle
101!
102 nlay = elbuf_tab(ng)%NLAY
103!
104 DO il = 1,nlay
105 imat = elbuf_tab(ng)%BUFLY(il)%IMAT
106 nfail = elbuf_tab(ng)%BUFLY(il)%NFAIL
107 mat_id = ipm(1,imat) ! user mat ID
108 IF (mat_checked(imat) == 0 ) THEN
109 mat_checked(imat) = 1
110 DO ifail = 1,nfail
111 fail_id = mat_param(imat)%FAIL(ifail)%FAIL_ID
112 IF (fail_id == 0)
113 . CALL ancmsg(msgid=297,anmode=aninfo,i1=mat_id)
114 ENDDO ! DO IFAIL
115 ENDIF ! IF (MAT_CHECKED(IMAT) == 0 )
116 ENDDO ! DO IL = 1,NLAY
117 ENDIF ! IF (ITY == 1 .or. ITY == 3 .or. ITY == 7)
118 ENDDO ! DO NG=1,NGROUP
119C---
120 ENDIF ! IF ( part de coque & STAT_C(8) = 1) THEN
121 END DO ! DO I=1,NSTATPRT
122 ELSEIF (nstatall /= 0) THEN
123 DO j=1,npart
124 ipart_state(j) = 1
125 END DO
126 ENDIF ! IF (NSTATPRT /= 0)
127C
128 RETURN
129 END
subroutine lecstat(ipart, ipart_state, elbuf_tab, ipm, iparg, iparts, ipartc, ipartg, mat_param)
Definition lecstat.F:37
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
subroutine arret(nn)
Definition arret.F:87