OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_debug.F File Reference
#include "debug_rst.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine write_i_c_debug (a, n, sa)
subroutine write_db_debug (a, n, sa)

Function/Subroutine Documentation

◆ write_db_debug()

subroutine write_db_debug ( double precision, dimension(n) a,
integer n,
character(len=*) sa )

Definition at line 79 of file write_debug.F.

80! Do not replace IMPLICIT NONE by an include here
81 IMPLICIT NONE
82#include "debug_rst.inc"
83 INTEGER :: N
84 DOUBLE PRECISION :: A(N)
85 CHARACTER(len=*) :: SA
86 INTEGER :: I,NT
87#if defined(_OPENMP)
88 INTEGER OMP_GET_THREAD_NUM
89 EXTERNAL omp_get_thread_num
90 nt = omp_get_thread_num()
91#else
92 nt=1
93#endif
94
95
96 IF(flush_rst_to_txt) THEN
97 WRITE(777+nt,*) trim(sa),' '
98 DO i = 1,n
99 WRITE(777+nt,'(E10.4,2X,Z20)') a(i),a(i)
100 ENDDO
101 ENDIF
102 CALL write_db(a,n)
103
subroutine write_db(a, n)
Definition write_db.F:140

◆ write_i_c_debug()

subroutine write_i_c_debug ( integer, dimension(n) a,
integer n,
character(len=*) sa )

Definition at line 35 of file write_debug.F.

37! Do not replace IMPLICIT NONE by an include here
38 IMPLICIT NONE
39#include "debug_rst.inc"
40 INTEGER :: A(N),N
41 CHARACTER(len=*) :: SA
42 CHARACTER(LEN=NCHARTITLE) :: TITR
43 INTEGER :: I,IT,J
44 INTEGER :: NT
45#if defined(_OPENMP)
46 INTEGER OMP_GET_THREAD_NUM
47 EXTERNAL omp_get_thread_num
48 nt = omp_get_thread_num()
49#else
50 nt=1
51#endif
52 IF(flush_rst_to_txt) THEN
53 titr(1:nchartitle) = " "
54 IF(n==ceiling(dble(nchartitle)/3.0d0)) THEN
55 CALL fretitl2(titr,a,ceiling(dble(nchartitle)/3.0d0))
56 WRITE(777+nt,*) trim(sa),' '
57 j = 1
58 DO i = 1,n
59 WRITE(777+nt,*) a(i),titr(j:j+2)
60 j = j + 3
61 ENDDO
62 ELSE
63 WRITE(777+nt,*) trim(sa),' '
64 DO i = 1,n
65 WRITE(777+nt,*) a(i)
66 ENDDO
67 ENDIF
68 ENDIF
69
70 CALL write_i_c(a,n)
71
72
integer, parameter nchartitle
subroutine fretitl2(titr, iasc, l)
Definition freform.F:804
void write_i_c(int *w, int *len)