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

Home » Public Forums » archive » Calling Fortran program
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
Calling Fortran program [message #2188] Thu, 02 June 1994 10:11 Go to next message
aki is currently offline  aki
Messages: 3
Registered: June 1994
Junior Member
Hi

I have to call a Fortran program that returns a vector. The IDL function CALL_EXTERNAL
allows to return a scalar value only. So it seems I have to use LINKIMAGE.

Is there anybody who knows how to use LINKIMAGE in particular who has any idea how to
pass a vector to IDL using LINKIMAGE ? ( I am using a SUN and I studied the manual for
dlopen() already. This was not very helpful.)

Thanks in advance ....

aki
Re: Calling Fortran program [message #2265 is a reply to message #2188] Mon, 13 June 1994 11:54 Go to previous message
tonym is currently offline  tonym
Messages: 14
Registered: May 1994
Junior Member
In Article <2t27cp$t2@hacgate2.hac.com>, 8015@sbjse0.sbrc.hac.com (Mike
Schienle) wrote:
> ...
>
>> FORTRAN routines from IDL. You can find it at
>> esrg.ucsb.edu:/pub/idl/idl-fortran.
>>
>
I find the documentation in the idl/misc/dynamic_link directory to be
somewhat more accurate than the idl-fortran faq file. Things reagrding
FORTRAN and IDL may have changed recently. In that directory, they
have examples of how to pass and return data from and to FORTRAN without
using any C (non-standard FORTRAN extensions needed for this).

Looking at this I just learned that IDL can return arrays instead of
just scalars.

Tony Mannucci Jet Propulsion Laboratory
tonym@lurleen.jpl.nasa.gov 4800 Oak Grove Drive
M/S 238-600
Voice: (818)354-1699 Fax: (818)393-4965 Pasadena, CA 91109
Re: Calling Fortran program [message #2266 is a reply to message #2188] Mon, 13 June 1994 11:54 Go to previous message
tonym is currently offline  tonym
Messages: 14
Registered: May 1994
Junior Member
In Article <2t27cp$t2@hacgate2.hac.com>, 8015@sbjse0.sbrc.hac.com (Mike
Schienle) wrote:
> ...
>
>> FORTRAN routines from IDL. You can find it at
>> esrg.ucsb.edu:/pub/idl/idl-fortran.
>>
>
I find the documentation in the idl/misc/dynamic directory to be
somewhat more accurate than the idl-fortran faq file. Things reagrding
FORTRAN and IDL may have changed recently. In that directory, they
have examples of how to pass and return data from and to FORTRAN without
using any C (non-standard FORTRAN extensions needed for this).

Looking at this I just learned that IDL can return arrays instead of
just scalars.

Tony Mannucci Jet Propulsion Laboratory
tonym@lurleen.jpl.nasa.gov 4800 Oak Grove Drive
M/S 238-600
Voice: (818)354-1699 Fax: (818)393-4965 Pasadena, CA 91109
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Implied do loops in IDL
Next Topic: Re: undocumented IDL built-in TVRDC

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

Current Time: Wed Oct 08 19:50:24 PDT 2025

Total time taken to generate the page: 0.00814 seconds