comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Writing arrays to text file - format code trickery?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Writing arrays to text file - format code trickery? [message #78423] Mon, 28 November 2011 04:36
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I've inherited some code which does something along the lines of the
following:

FOR i = 0L, 359 DO printf,unit,A[0,0,i],
A[0,1,i],A[0,2,i],A[0,3,i],A[0,4,i],A[0,5,i],format='(6(2X, E15.8))'

where A is [2, 6, 360]

Now this is done quite a lot and becomes horribly slow. Is there a
clever way I can use the format code to do it with fewer (one?) print
statements? (Maybe by juggling the array around first?)

Thanks

Rob
[Message index]
 
Read Message
Previous Topic: Re: Contour dimension problem
Next Topic: Re: Writing arrays to text file - format code trickery?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:14:45 PDT 2025

Total time taken to generate the page: 0.00422 seconds