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

Go to the source code of this file.

Functions/Subroutines

subroutine fail_fun2sys (fail, title, mat_id, nfunct, func_id)

Function/Subroutine Documentation

◆ fail_fun2sys()

subroutine fail_fun2sys ( type (fail_param_), intent(inout) fail,
character(len=nchartitle), intent(in) title,
integer, intent(in) mat_id,
integer, intent(in) nfunct,
integer, dimension(nfunct), intent(in) func_id )

Definition at line 32 of file fail_fun2sys.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE fail_param_mod
37 USE message_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) :: NFUNCT ! total number of system functions
47 INTEGER ,DIMENSION(NFUNCT) ,INTENT(IN) :: FUNC_ID
48 CHARACTER(LEN=nchartitle) ,INTENT(IN) :: TITLE
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 function IDs in failure models by system numbers
56C=======================================================================
57 DO i=1,fail%NFUNC
58 ok = 0
59 IF (fail%IFUNC(i) > 0) THEN
60 DO j=1,nfunct ! total number of functions
61 IF (fail%IFUNC(i) == func_id(j)) THEN
62 fail%IFUNC(i) = j
63 ok = 1
64 EXIT
65 ENDIF
66 ENDDO
67 IF (ok == 0) THEN
68 CALL ancmsg(msgid = 126, msgtype=msgerror, anmode=aninfo_blind_1,
69 . i1 = mat_id,
70 . c1 = title ,
71 . i2 = fail%IFUNC(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