(j3.2006) "Contiguous" doesn't quite do what I need
Bill Long
longb
Mon Mar 26 12:43:54 EDT 2007
Michael Ingrassia wrote:
>Well, if we needed a notion of "contiguous from dimension 1 through
>dimension i" someday, I imagine we could come up with a less error-prone
>syntax. Something like
>
> dimension a (;, ;, ;, ||| :, :, :, :, :)
>
> ^^^
> three vertical bars as a visual "barrier"
>
>(contiguous in first 3 dimensions, all bets off after that).
>
>
I assume those first 3 ; were really : to avoid ending the statement early.
However, in his example it seems that Van wanted more - to have the
first dimensions explicit shape while the remaining ones were assumed or
deferred. Actually, you can effectively do that already by creating a
derived type with, for example, a 2 x 2 array component. Then declare an
assumed or deferred shape array of the parent type to get the remaining
dimensions. That structure probably more accurately captures the
algorithmic intent anyway.
Cheers,
Bill
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
More information about the J3
mailing list