OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fail_tab2sys.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!|| fail_tab2sys ../starter/source/materials/tools/fail_tab2sys.F
25!||--- calls -----------------------------------------------------
26!|| ancmsg ../starter/source/output/message/message.F
27!||--- uses -----------------------------------------------------
28!|| message_mod ../starter/share/message_module/message_mod.F
29!|| table_mod ../starter/share/modules1/table_mod.F
30!||====================================================================
31 SUBROUTINE fail_tab2sys(FAIL ,TITLE ,MAT_ID ,NTABL ,TABLE )
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
77 END
subroutine fail_tab2sys(fail, title, mat_id, ntabl, table)
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