This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: guides in gsl for fortran ?????


On Wed, 2002-12-04 at 11:40, Brian Gough wrote:
> Mauricio Duque writes:
>  > 
>  >  I job in fortran for linix with the compilador g77, myself like that
>  > please someone me east of as I can implement gsl for fortran since the
>  > configuration to the compilacion
>  > 
> 
> GSL is only available in C, not fortran.

Depends on what you mean by available. A lot of folks are using GSL
from fortran - it is just a matter of standard C to fortran wrapper.

Mauricio: Read also GNU documentation about calling C functions from
fortran code. All you need is a simple wrapper function. Works
perfectly. 

Example : you have in GSL func1(double,double) and you want to call it
from fortran.

write wrapper in C:

func1_(double *x,double *y){
  func1(*x,*y);
}

For more - read the docs - it is explained there much better than I
would be able to.

BR,

Jacek

-- 
Jacek Pliszka <pliszka@physics.ucr.edu>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]