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

Home » Public Forums » archive » IDL calling Fortran
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
IDL calling Fortran [message #48524] Wed, 26 April 2006 16:19 Go to next message
Cliff is currently offline  Cliff
Messages: 11
Registered: April 2006
Junior Member
I have a problem calling Fortran from IDL. I have written code to do
this before but my current DLL breaks when using double precision. Does
the %VAL command only work with real*4? Does anyone have an F90 example
using real*8?

look forward to hearing from you.

By the way I am using compaq visual fortran on windows XP.
Re: IDL calling Fortran [message #48584 is a reply to message #48524] Fri, 28 April 2006 12:31 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
hi, Cliff

I've never tried cvf myself. How does it break? Does it compile? This
might hve something to do with the fact that typically %VAL only pass
4byte(32bits) on x86-32 system and 8byte(64bits) on x86-64 system.
Under linux, my experience with ifort is-

if I use f77 standard(*.f), the example in EDG should work with no
problem.
if I use f90 standard(*.f90), it works only when the corresponding
dummy is integer*4
if I want to work with data other than integer*4 in f90, I have to use
NO_ARG_CHECK for the ATTRIBUTES of the dummy

I hope this helps.

Cheers,
bp


Cliff wrote:
> I have a problem calling Fortran from IDL. I have written code to do
> this before but my current DLL breaks when using double precision. Does
> the %VAL command only work with real*4? Does anyone have an F90 example
> using real*8?
>
> look forward to hearing from you.
>
> By the way I am using compaq visual fortran on windows XP.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: equal lat long grid
Next Topic: passing IDL string to Fortran90?

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

Current Time: Wed Oct 08 13:45:54 PDT 2025

Total time taken to generate the page: 0.00373 seconds