#include "implicit_f.inc"
#include "scr05_c.inc"
Go to the source code of this file.
◆ write_db()
| subroutine write_db |
( |
| a, |
|
|
integer | n ) |
Definition at line 141 of file write_db.F.
142
143
144
145
146#include "implicit_f.inc"
147
148
149
150 INTEGER N
151
153 . a(*)
154
155
156
157#include "scr05_c.inc"
158
159
160
161 INTEGER I,J,K,N1,N2
162 DOUBLE PRECISION R8(1000)
163 REAL R4(1000)
164
165
166
167 k=0
168 n1=n/1000
169 IF(icray==1)THEN
170
171
172 DO i = 1, n1
173 DO j = 1, 1000
174 k=k+1
175 r4(j) = a(k)
176 ENDDO
178 ENDDO
179 n2=n1*1000
180 IF(n2/=n)THEN
181 DO j = 1, n-n2
182 k=k+1
183 r4(j) = a(k)
184 ENDDO
186 ENDIF
187 ELSE
188
189 DO i = 1, n1
190 DO j = 1, 1000
191 k=k+1
192 r8(j) = a(k)
193 ENDDO
195 ENDDO
196 n2=n1*1000
197 IF(n2/=n)THEN
198 DO j = 1, n-n2
199 k=k+1
200 r8(j) = a(k)
201 ENDDO
203 ENDIF
204 ENDIF
205
206 RETURN
void write_db_c(double *w, int *len)
◆ write_db_array()
| subroutine write_db_array |
( |
| a, |
|
|
integer | n ) |
Definition at line 219 of file write_db.F.
220
221
222
223
224#include "implicit_f.inc"
225
226
227
228 INTEGER N
229
231 . a(*)
232
233
234
235#include "scr05_c.inc"
236
237
238
239 INTEGER I,J,K,N1,N2
240 DOUBLE PRECISION R8(1000)
241 REAL R4(1000)
242
243
244
245 k=0
246 n1=n/1000
247 IF(icray==1)THEN
248
249
250 DO i = 1, n1
251 DO j = 1, 1000
252 k=k+1
253 r4(j) = a(k)
254 ENDDO
256 ENDDO
257 n2=n1*1000
258 IF(n2/=n)THEN
259 DO j = 1, n-n2
260 k=k+1
261 r4(j) = a(k)
262 ENDDO
264 ENDIF
265 ELSE
266
267 DO i = 1, n1
268 DO j = 1, 1000
269 k=k+1
270 r8(j) = a(k)
271 ENDDO
273 ENDDO
274 n2=n1*1000
275 IF(n2/=n)THEN
276 DO j = 1, n-n2
277 k=k+1
278 r8(j) = a(k)
279 ENDDO
281 ENDIF
282 ENDIF
283
284 RETURN
void write_db_array_c(double *w, int *len)
◆ write_dpdb()
| subroutine write_dpdb |
( |
double precision, dimension(*) | a, |
|
|
integer | n ) |
Definition at line 303 of file write_db.F.
304
305
306
307
308#include "implicit_f.inc"
309
310
311
312 INTEGER N
313 double precision
314 . a(*)
315
316
317
318 INTEGER I,,K,N1,N2
319 DOUBLE PRECISION R8(1000)
320
321
322
323 k=0
324 n1=n/1000
325
326 DO i = 1, n1
327 DO j = 1, 1000
328 k=k+1
329 r8(j) = a(k)
330 ENDDO
332 ENDDO
333 n2=n1*1000
334 IF(n2/=n)THEN
335 DO j = 1, n-n2
336 k=k+1
337 r8(j) = a(k)
338 ENDDO
340 ENDIF
341
342 RETURN