Jeffrey D. Pursel wrote:
> We are developing some software in which it would be nice to group
> some arrays into a derived type.
You need to be more specific: Arrays inside a derived type can be
explicit shape, allocatable, or pointer. That makes by far more
difference than whether they are inside a derived type or not.
> For example, are arrays within a derived type typically stored
> in array element order?
I can't think of any reason why a compiler would treat an array
component of a derived type any differently from an array that is
declared outside a derived type definition. This is different from the
issue of arrays of a derived type, where there are some cache and
related issues that come up. But a scalar of a derived type with array
components should not impact performance at all, unless it is a bad
compiler.
Best,
Aleks
|