Peter Steinle wrote:
> I realize the question I should have asked is can allocated arrays be
> safely passed to old F77 routines - and the answer must be yes (as I had
> assumed - but often my assumptions are suspect).
It is always "safe" to do that, even for array pointers, as long as there is
an explicit interface--the compiler will make a contigious copy if needed.
But there is an issue of efficiency here--since allocatable arrays are
guaranteed to be contiguous no compiler will make a copy in/copy out when
calling "old F77 routines". The same cannot be said of array pointers or
assumed-shape array arguments...
Best,
Aleksandar
|