Jaehoon Seol wrote:
> I am trying to call a fortran subroutine from C++. The difficulty which I
> am facing is the following.
>
> Inside C++, I am calling a fortran subroutine;
>
> void testfortran(double) ;
> .......................
> testfortran(1.0);
Parameters are always passed by reference in Fortran. So no way you could
pass 1.0:
write it into a variable and pass the address.
Adriaan
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|