Next: Function aliasing
Up: Calls to different language
Previous: String Arguments from Fortran
Contents
Calling Fortran Routines from C
To call a utility Fortran routine from C, use
void CCTK_FCALL CCTK_FNAME(<Fortran routine name>)(<argument list>)
Note that Fortran expects all arguments (apart from strings) to be
pointers, so any non-array data should be passed by address.
Currently, we have no support for calling Fortran routines which expect
strings from C. However, passing routines is supported when you use function aliasing, see Section B10.5.
|