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