Peter Steinle wrote:
> Is the memory assigned by an allocate statement guaranteed to be
> continuous ?
Yes it is. The standard will not say this a priori, since contiguous (the
correct term here) is not used at all in there. But the rules are such that
allocatable arrays are treated just like explicit shape or assumed-size
arrays, which are "contiguous". Only in Fortran 2003, when we finally make
these interoperable with C, is it clear that this is the case, since it is C
that talks about a linear memory and these arrays *are* interoperable with C
arrays.
Best,
Aleksandar
|