OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_failwave.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
!|| w_failwave ../engine/source/output/restart/w_failwave.F
25
!||--- called by ------------------------------------------------------
26
!|| wrrestp ../engine/source/output/restart/wrrestp.F
27
!||--- calls -----------------------------------------------------
28
!|| write_i_c ../common_source/tools/input_output/write_routtines.c
29
!||--- uses -----------------------------------------------------
30
!|| failwave_mod ../common_source/modules/failwave_mod.F
31
!||====================================================================
32
SUBROUTINE
w_failwave
(FAILWAVE)
33
C-----------------------------------------------
34
C M o d u l e s
35
C-----------------------------------------------
36
USE
failwave_mod
37
C-----------------------------------------------
38
C I m p l i c i t T y p e s
39
C-----------------------------------------------
40
#include "implicit_f.inc"
41
C-----------------------------------------------
42
C C o m m o n B l o c k s
43
C-----------------------------------------------
44
#include "com04_c.inc"
45
C-----------------------------------------------
46
C D u m m y A r g u m e n t s
47
C-----------------------------------------------
48
TYPE
(FAILWAVE_STR_) :: FAILWAVE
49
C-----------------------------------------------
50
C L o c a l V a r i a b l e s
51
C-----------------------------------------------
52
INTEGER
I,J,K,IAD,IWAVE,NDDL,SIZE,NNOD,LEN
53
INTEGER
,
DIMENSION(4)
:: HEAD
54
INTEGER
,
DIMENSION(:)
,
ALLOCATABLE
:: RBUF
55
C=======================================================================
56
iwave = failwave%WAVE_MOD
57
nddl = failwave%NDDL
58
SIZE
= failwave%SIZE
59
nnod = failwave%NNOD
60
head(1) = iwave
61
head(2) = nddl
62
head(3) =
SIZE
63
head(4) = nnod
64
CALL
write_i_c
(head,4)
65
c
66
IF
(iwave > 0)
THEN
67
len = nnod*nddl*
SIZE
68
ALLOCATE
( rbuf(len) )
69
iad = 0
70
DO
k = 1,
SIZE
71
DO
j = 1,nnod
72
DO
i = 1,nddl
73
iad = iad+1
74
rbuf(iad) = failwave%FWAVE_NOD(i,j,k)
75
END DO
76
END DO
77
END DO
78
c
79
CALL
write_i_c
(failwave%INDX , nnod)
80
CALL
write_i_c
(failwave%IDXI , numnod)
81
CALL
write_i_c
(failwave%MAXLEV, nnod)
82
CALL
write_i_c
(rbuf, len)
83
c
84
DEALLOCATE
( rbuf )
85
ENDIF
86
c--------------------------------
87
RETURN
88
END
w_failwave
subroutine w_failwave(failwave)
Definition
w_failwave.F:33
failwave_mod
Definition
failwave_mod.F:61
write_i_c
void write_i_c(int *w, int *len)
Definition
write_routtines.c:645
engine
source
output
restart
w_failwave.F
Generated by
1.15.0