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

Home » Public Forums » archive » passing IDL string to Fortran90?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
passing IDL string to Fortran90? [message #48503] Fri, 28 April 2006 00:17 Go to next message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Hi, Folk

I've been using quite often with call_external() to let F90 do the
number crunching. And I'm happy to see it speeds my data processing
quite a lot. Recently I found that F90 loads binary data from file 3~4
times faster than IDL. However it seems clueless to me how to pass a
IDL string to Fortran90. Can anybody here give me some hints? Thanks a
lot!

bp
Re: passing IDL string to Fortran90? [message #48583 is a reply to message #48503] Fri, 28 April 2006 12:38 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Ok, I came up with a not so decent solution to my problem. A little
silly, but it works!

In IDL I pass the string, which is actually a filename, as two
variables as byte(filename) and strlen(filename) with type integer*1
and integer*4 and in fortran convert it back to char*(*) with the
intrinsic char() function.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL calling Fortran
Next Topic: Oh what is wrong with WHERE() ?

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

Current Time: Wed Oct 08 14:00:34 PDT 2025

Total time taken to generate the page: 0.00639 seconds