This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: guides in gsl for fortran ?????
- From: Jacek Pliszka <pliszka at physics dot ucr dot edu>
- To: gsl-discuss at sources dot redhat dot com
- Cc: Mauricio Duque <maurod at telesat dot com dot co>, mauriciodd at estudiantes dot fisica dot unal dot edu dot co
- Date: 04 Dec 2002 12:27:42 -0800
- Subject: Re: guides in gsl for fortran ?????
- Organization:
- References: <003601c2972f$4b3951e0$8d6847c8@science> <15854.23115.694082.621412@debian>
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>