Robert Ferrell wrote:
> FORTRAN always passes by reference. So you need to declare
>
> void testfortran(double *);
>
> and pass arguments accordingly.
As others will probably point out, this is not strictly true. Most
Fortran systems do this but copy-in-copy-out pass-by-value is
allowed. Indeed, Fujitsu compilers allow you to use this as an option.
David
--
[log in to unmask] ANU Supercomputer Facility
Phone: +61 2 6249 4389 Australian National University
Fax: +61 2 6279 8199 Canberra, ACT, 0200, Australia
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|