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

Home » Public Forums » archive » Calling FORTRAN routines from IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Calling Fortran routines from IDL [message #15139 is a reply to message #799] Sat, 24 April 1999 00:00 Go to previous messageGo to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
Sang-Heon Shim wrote:

> I heard there is a method to call fortran subroutines (77,
> 90, or both?) from IDL professional version. If that is
> true, it will enable me to link my fortran routines and
> other great fortran routines out there to IDL, which is
> great to me!

Yes, it's true (for most platforms). A "wrapper" routine
written in C is necessary -- but anything that can be
called from C can be called from IDL, in principle.

For f77 programs, there's now a pretty good, semi-automatic
way of generating the C wrapper function: Look at

http://www.uio.no/~steinhh/idl/dlmform.html

One big area of trouble is *strings* - I don't know enough on
how Fortran XX handles strings, and it's a troublesome area
in general, so beware. But who writes Fortran subroutines to
manipulate strings...???

Also see http://www.uio.no/~steinhh/idl/additions.html for a
brief discussion on Dynamicaly Loadable Modules in general,
and some C examples.

Regards,

Stein Vidar
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: structure (reform_struct)
Next Topic: Re: IDL Solaris much slower than Intel

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

Current Time: Fri Oct 10 02:23:19 PDT 2025

Total time taken to generate the page: 2.07985 seconds