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

Home » Public Forums » archive » Reading fortran
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Reading fortran [message #45591] Tue, 20 September 2005 02:54 Go to previous message
panblosky is currently offline  panblosky
Messages: 17
Registered: May 2005
Junior Member
Hi all,

does somebody knows how to read this (fortran way)

do 210 j=1,ngr2
write(10) real(rhoc(j)),
2 real(psi1(j)),real(psi2(j)),real(psi3(j))
write(10) aimag(rhoc(j)),
2 aimag(psi1(j)),aimag(psi2(j)),aimag(psi3(j))
210 continue

in IDL? I managed, but it takes forever for big "ngr2". This is what I
do:

rhoc=fltarr(ng3)
psi1=fltarr(ng3) & psi2=fltarr(ng3) & psi3=fltarr(ng3)

For i=0l,ng3-1l do begin
readu,lun,tmp1,tmp2,tmp3,tmp4
rhoc[i]=tmp1
psi1[i]=tmp2
psi2[i]=tmp3
psi3[i]=tmp4
Endfor

but this takes a long time... Anybody knows a fast way?
Thanks!!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: REGRESS Question
Next Topic: Re: IDL Programming Techniques, 3rd edition

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

Current Time: Wed Oct 08 17:35:07 PDT 2025

Total time taken to generate the page: 0.00421 seconds