Subchapters: |
Calling Fortran Procedures from IDLYou can easily call Fortran procedures/function from IDL. You need for example to call convram.f which is a Fortran routine like this: subroutine
convram(nk,nl,param_in,tau_dust_PDR_alpha, integer*2
nk,nl STRUCTURE
/param/ record /param/ param_in [....] By the way, you see that even in F77, there are structures. You wanna use F77
to perform the calculation of tab_resul. INTEGER*4 FUNCTION callconvram(ARGC, ARGV)
INTEGER*4
ARGC !Argument count c This must be compiled as a sharable library. Have a look at your own <IDL_Directory>/external/sharelib for more complete examples (also for C). Or see an example of a Makefile for SUN. Now you can call the procedure from IDL by: IDL>
def_lib_fort,'callconvram',lib_name,entry_name |
IDL courses C. Morisset © 2004 IA/UNAM V 2.2 |