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

Go to the source code of this file.

Functions/Subroutines

subroutine fail_tab2sys (fail, title, mat_id, ntabl, table)

Function/Subroutine Documentation

◆ fail_tab2sys()

subroutine fail_tab2sys ( type (fail_param_), intent(inout) fail,
character(len=nchartitle), intent(in) title,
integer, intent(in) mat_id,
integer, intent(in) ntabl,
type(ttable), dimension(ntabl), intent(inout) table )

Definition at line 31 of file fail_tab2sys.F.

32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE message_mod
36 USE table_mod
37 USE fail_param_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER ,INTENT(IN) :: MAT_ID
46 INTEGER ,INTENT(IN) :: NTABL ! total number of system function tables
47 CHARACTER(LEN=nchartitle) ,INTENT(IN) :: TITLE
48 TYPE(TTABLE), DIMENSION(NTABL) ,INTENT(INOUT) :: TABLE
49 TYPE (FAIL_PARAM_) ,INTENT (INOUT) :: FAIL
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I,J,OK
54C-----------------------------------------------
55c Replace table IDs in failure models by system numbers
56C=======================================================================
57 DO i=1,fail%NTABLE
58 ok = 0
59 IF (fail%TABLE(i) > 0) THEN
60 DO j=1,ntabl ! total number of function tables
61 IF (fail%TABLE(i) == table(j)%NOTABLE) THEN
62 fail%TABLE(i) = j
63 ok = 1
64 EXIT
65 ENDIF
66 ENDDO
67 IF (ok == 0) THEN
68 CALL ancmsg(msgid = 779, msgtype=msgerror, anmode=aninfo_blind_1,
69 . i1 = mat_id,
70 . c1 = title ,
71 . i2 = fail%TABLE(i))
72 ENDIF
73 ENDIF
74 ENDDO
75c-----------
76 RETURN
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