OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_failparam.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| write_failparam ../engine/source/output/restart/write_failparam.F
25
!||--- called by ------------------------------------------------------
26
!|| write_matparam ../engine/source/output/restart/write_matparam.F
27
!||--- calls -----------------------------------------------------
28
!|| write_c_c ../common_source/tools/input_output/write_routtines.c
29
!|| write_db ../common_source/tools/input_output/write_db.F
30
!|| write_i_c ../common_source/tools/input_output/write_routtines.c
31
!||--- uses -----------------------------------------------------
32
!|| fail_param_mod ../common_source/modules/mat_elem/fail_param_mod.F90
33
!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
34
!||====================================================================
35
SUBROUTINE
write_failparam
(FAIL)
36
C-----------------------------------------------
37
C M o d u l e s
38
C-----------------------------------------------
39
USE
fail_param_mod
40
USE
names_and_titles_mod
41
C-----------------------------------------------
42
C I m p l i c i t T y p e s
43
C-----------------------------------------------
44
#include
"implicit_f.inc"
45
C-----------------------------------------------
46
C D u m m y A r g u m e n t s
47
C-----------------------------------------------
48
TYPE
(fail_param_) ,
INTENT(IN)
:: FAIL
49
C-----------------------------------------------
50
C L o c a l V a r i a b l e s
51
C-----------------------------------------------
52
INTEGER
:: I,J,IAD,LENI,LENR,NUPARAM,NIPARAM,NUMTABL,NFUNC
53
INTEGER
,
DIMENSION(NCHARTITLE)
:: NAME
54
INTEGER
,
DIMENSION(:)
,
ALLOCATABLE
::
IBUF
55
my_real
,
DIMENSION(:)
,
ALLOCATABLE
:: rbuf
56
C=======================================================================
57
leni = 9
58
ALLOCATE
(ibuf(leni))
59
c
60
ibuf(1) = fail%IRUPT
61
ibuf(2) = fail%FAIL_ID
62
ibuf(3) = fail%NUPARAM
63
ibuf(4) = fail%NIPARAM
64
ibuf(5) = fail%NUVAR
65
ibuf(6) = fail%NFUNC
66
ibuf(7) = fail%NTABLE
67
ibuf(8) = fail%NMOD
68
ibuf(9) = fail%FAIL_IP
69
c
70
CALL
write_i_c
(ibuf,leni)
71
DEALLOCATE
(ibuf)
72
c
73
lenr = 1
74
ALLOCATE
(rbuf(lenr))
75
rbuf(1) = fail%PTHK
76
CALL
write_db
(rbuf ,lenr)
77
DEALLOCATE
(rbuf)
78
c
79
c write law keyword and keywords of failure modes
80
c
81
DO
i=1,
nchartitle
82
name(i) = ichar(fail%KEYWORD(i:i))
83
END DO
84
CALL
write_c_c
(name,
nchartitle
)
85
c
86
DO
j=1,fail%NMOD
87
DO
i=1,
nchartitle
88
name(i) = ichar(fail%MODE(j)(i:i))
89
END DO
90
CALL
write_c_c
(name,
nchartitle
)
91
END DO
92
c
93
c write parameter tables
94
95
nuparam = fail%NUPARAM
96
niparam = fail%NIPARAM
97
IF
(nuparam > 0)
THEN
98
CALL
write_db
(fail%UPARAM ,nuparam)
99
END IF
100
IF
(niparam > 0)
THEN
101
CALL
write_i_c
(fail%IPARAM ,niparam)
102
END IF
103
c
104
c write function adresses
105
c
106
nfunc = fail%NFUNC
107
IF
(nfunc > 0)
THEN
108
CALL
write_i_c
(fail%IFUNC,nfunc)
109
END IF
110
c
111
c write function tables
112
c
113
numtabl = fail%NTABLE
114
IF
(numtabl > 0)
THEN
115
CALL
write_i_c
(fail%TABLE,numtabl)
116
END IF
117
c-----------
118
RETURN
119
END
my_real
#define my_real
Definition
cppsort.cpp:32
write_failparam
subroutine write_failparam(fail)
Definition
write_failparam.F:36
names_and_titles_mod
Definition
names_and_titles_mod.F:997
names_and_titles_mod::nchartitle
integer, parameter nchartitle
Definition
names_and_titles_mod.F:1003
write_db
subroutine write_db(a, n)
Definition
write_db.F:140
write_i_c
void write_i_c(int *w, int *len)
Definition
write_routtines.c:645
write_c_c
void write_c_c(int *w, int *len)
Definition
write_routtines.c:591
engine
source
output
restart
write_failparam.F
Generated by
1.15.0