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

Home » Public Forums » archive » Re: Fortran External Calls
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
Re: Fortran External Calls [message #13828] Thu, 17 December 1998 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Here is an example page I created quite awhile ago...

http://www.cdc.noaa.gov/~afl/code/call_external/describe.htm l




> Hi,
> I just need help with a simple (I htink) problem.
> Basically I am having a bit of trouble understanding the little
> bit of documentation in my idl manuals on call_extern. I just have a f90
> function that I want to call from idl. The manuals refer to some advanced
> idl manual which I don't seem to have.
> I found the faq and they have a very promising site at
> eos.crseo.ucsb.edu:/pub/idl/idl-fortran.Z
> but their isn't any such file at this site.
> Anyway I think all I need is a solid example of it being done.
> Don't really understand how to do the argv stuff in fortran. What I am
> trying is definetely not working.
> Thanks in advance.
> John Grimes
Re: Fortran External Calls [message #13831 is a reply to message #13828] Thu, 17 December 1998 00:00 Go to previous message
edors is currently offline  edors
Messages: 7
Registered: November 1998
Junior Member
John,

Look in one of the following directories I think you will find the
examples you are looking for.

IDL version 4 : ${IDL_DIR}/external/examples/sharelib
IDL version 5.1 : ${IDL_DIR}/external/sharelib
IDL version 5.2 : ${IDL_DIR}/external/call_external/Fortran.

Eric


jpgrimes@midway.uchicago.edu (john peter grimes) writes:

> Hi,
> I just need help with a simple (I htink) problem.
> Basically I am having a bit of trouble understanding the little
> bit of documentation in my idl manuals on call_extern. I just have a f90
> function that I want to call from idl. The manuals refer to some advanced
> idl manual which I don't seem to have.
> I found the faq and they have a very promising site at
> eos.crseo.ucsb.edu:/pub/idl/idl-fortran.Z
> but their isn't any such file at this site.
> Anyway I think all I need is a solid example of it being done.
> Don't really understand how to do the argv stuff in fortran. What I am
> trying is definetely not working.
> Thanks in advance.
> John Grimes
>


--

==================================
| Eric E. Dors |
| Los Alamos National Laboratory |
| edors@lanl.gov |
==================================
Re: Fortran External Calls [message #13841 is a reply to message #13828] Thu, 17 December 1998 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
John Grimes wrote (about F90 call_external problems):
> Anyway I think all I need is a solid example of it being done.
> Don't really understand how to do the argv stuff in fortran. What I am
> trying is definetely not working.

Although it's *possible* that there's a mechanism in F90 that will
allow this to be done, I doubt it. You will probably have to
write a C wrapper that gets the parameters from argv and then
passes them to the F90 routine. See the examples in
$IDL_DIR/external/call_external/Fortran (that's the name
of the directory for IDL 5.2, anyway - can't seem to remember
the capital F in Fortran before....) Beware that routine
naming conventions (underscores etc.) may be different
in C, F77 and F90 compilers.

You should also look at the online help more closely, there's
a lot of it that's hidden well: There's the "Main IDL Help File",
and then there's the "Other Online Books" (think the naming
etc. is slightly different for earlier versions, but the thing
that counts is that the online help is segmented into "books",
and when you're looking at one book, you cannot see what's
in the other books until you make the switch in the Contents
section of the Topics "dialog").

Regards,

Stein Vidar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Polar Plots?
Next Topic: Re: Secret decoder ring! ring! ring!

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

Current Time: Wed Oct 08 15:16:38 PDT 2025

Total time taken to generate the page: 0.12218 seconds