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

Home » Public Forums » archive » Solving elliptic equation in 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: Solving elliptic equation in IDL [message #36317 is a reply to message #36241] Thu, 28 August 2003 13:12 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Chris Dallimore wrote:

> Mark, I just saw this thread and thought I'd make a comment. I did a
> bit of interfacing between IDL and Fortran last year but I've just
> moved and my code is in transit so I don't have any examples with me.
>
> We did it a little differently but the principle was the same. The
> comment I wanted to make was that this method removes any chance of
> porting code because the "ATTRIBUTES VALUE" declaration is compiler
> and OS specific.

Yes. So is the the %VAL function used to dereference the elements of
argv (though I believe the %VAL function is more widely supported than
the ATTRIBUTES VALUE declaration).

If you want to make any sense of the argc argument you do need some way
to tell the Fortran routine that it has been passed by value. If that's
not possible on your compiler, then you can do without. Just declare
your argv array as "argv(*)". Make sure you don't go out of bounds and
don't expect argc to have a meaningful value.

On the other hand you definitely can't do without %VAL (or equivalent).
If your compiler doesn't support that you need to write your glue
routine in C.

The good news is that Fortran 2000 will standardise all this.

> Also one other thing that we found was that to link
> IDL to Compaq fortran the machine needed to have Visual C++ installed.
> I never actually tracked down what libraries were required but I
> couldn't get it to work without VC++ installed.

Hmmm. I don't have any problems there and I have never had VC++
installed on this machine.

> Did you build a dll or a dlm?

DLL.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: working with IDLtoAVI.dlm
Next Topic: Pixmap Problems

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

Current Time: Tue Dec 02 15:16:27 PST 2025

Total time taken to generate the page: 1.36345 seconds