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

Go to the source code of this file.

Functions/Subroutines

subroutine strs_txt (text, len)
subroutine strs_txt50 (text, length)
subroutine tab_strs_txt50 (wap0, cpt, j, sizp0, nbpline)

Function/Subroutine Documentation

◆ strs_txt()

subroutine strs_txt ( character*80 text,
integer len )

Definition at line 28 of file sta_txt.F.

29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C D u m m y A r g u m e n t s
35C-----------------------------------------------
36 CHARACTER*80 TEXT
37 INTEGER LEN
38C-----------------------------------------------
39C L o c a l V a r i a b l e s
40C-----------------------------------------------
41 INTEGER CTEXT(81),I
42C
43 DO 100 i=1,len
44 100 ctext(i)=ichar(text(i:i))
45 ctext(len+1)=0
46C
47 CALL write_c_c(ctext,81)
48C
49 RETURN
void write_c_c(int *w, int *len)

◆ strs_txt50()

subroutine strs_txt50 ( character(len = length) text,
integer length )

Definition at line 86 of file sta_txt.F.

87C-----------------------------------------------
88C I m p l i c i t T y p e s
89C-----------------------------------------------
90#include "implicit_f.inc"
91C-----------------------------------------------
92C D u m m y A r g u m e n t s
93C-----------------------------------------------
94 INTEGER LENGTH
95 CHARACTER(LEN = LENGTH) :: TEXT
96C-----------------------------------------------
97C L o c a l V a r i a b l e s
98C-----------------------------------------------
99 INTEGER TEXT_LEN
100 text_len=len_trim(text)
101
102 CALL write_c_c_txt(text,text_len)
103C
104 RETURN
void write_c_c_txt(char *w, int *len)

◆ tab_strs_txt50()

subroutine tab_strs_txt50 ( double precision, dimension(sizp0) wap0,
integer cpt,
integer j,
integer sizp0,
integer nbpline )

Definition at line 126 of file sta_txt.F.

127C-----------------------------------------------
128C I m p l i c i t T y p e s
129C-----------------------------------------------
130#include "implicit_f.inc"
131C-----------------------------------------------
132C D u m m y A r g u m e n t s
133C-----------------------------------------------
134 INTEGER CPT,J,SIZP0,NBPLINE
135 double precision
136 . WAP0(SIZP0)
137C-----------------------------------------------
138C L o c a l V a r i a b l e s
139C-----------------------------------------------
140 CHARACTER*100 LINE
141 INTEGER I,K,K1
142 INTEGER J1
143C
144 j1 = j
145 IF (nbpline > 5)nbpline = 5
146 DO k=1,cpt
147 IF (mod(k,nbpline) == 0) THEN
148 SELECT CASE (nbpline)
149 CASE (1)
150 WRITE(line,'(1P1E20.13)')(wap0(j1 + k1),k1=1,nbpline)
151 CALL strs_txt50(line,20)
152 CASE (2)
153 WRITE(line,'(1P2E20.13)')(wap0(j1 + k1),k1=1,nbpline)
154 CALL strs_txt50(line,40)
155 CASE (3)
156 WRITE(line,'(1P3E20.13)')(wap0(j1 + k1),k1=1,nbpline)
157 CALL strs_txt50(line,60)
158 CASE (4)
159 WRITE(line,'(1P4E20.13)')(wap0(j1 + k1),k1=1,nbpline)
160 CALL strs_txt50(line,80)
161 CASE (5)
162 WRITE(line,'(1P5E20.13)')(wap0(j1 + k1),k1=1,nbpline)
163 CALL strs_txt50(line,100)
164 END SELECT
165 j1 = j1 + nbpline
166 ELSEIF (k == cpt) THEN
167 SELECT CASE (mod(k,nbpline))
168 CASE (1)
169 WRITE(line,'(1P1E20.13)')(wap0(j1 + k1),k1=1,mod(k,nbpline))
170 CALL strs_txt50(line,20)
171 CASE (2)
172 WRITE(line,'(1P2E20.13)')(wap0(j1 + k1),k1=1,mod(k,nbpline))
173 CALL strs_txt50(line,40)
174 CASE (3)
175 WRITE(line,'(1P3E20.13)')(wap0(j1 + k1),k1=1,mod(k,nbpline))
176 CALL strs_txt50(line,60)
177 CASE (4)
178 WRITE(line,'(1P4E20.13)')(wap0(j1 + k1),k1=1,mod(k,nbpline))
179 CALL strs_txt50(line,80)
180 CASE (5)
181 WRITE(line,'(1P5E20.13)')(wap0(j1 + k1),k1=1,mod(k,nbpline))
182 CALL strs_txt50(line,100)
183 END SELECT
184 ENDIF
185 ENDDO
186C
187 RETURN
subroutine strs_txt50(text, length)
Definition sta_txt.F:87