OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_failwave.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!|| 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)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE failwave_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com04_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 TYPE (FAILWAVE_STR_) :: FAILWAVE
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,J,K,IAD,IWAVE,NDDL,SIZE,NNOD,LEN
53 INTEGER, DIMENSION(4) :: HEAD
54 INTEGER, DIMENSION(:), ALLOCATABLE :: RBUF
55C=======================================================================
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)
65c
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
78c
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)
83c
84 DEALLOCATE( rbuf )
85 ENDIF
86c--------------------------------
87 RETURN
88 END
subroutine w_failwave(failwave)
Definition w_failwave.F:33
void write_i_c(int *w, int *len)