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

Go to the source code of this file.

Functions/Subroutines

subroutine w_failwave (failwave)

Function/Subroutine Documentation

◆ w_failwave()

subroutine w_failwave ( type (failwave_str_) failwave)

Definition at line 32 of file w_failwave.F.

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
void write_i_c(int *w, int *len)