Neil Carlson wrote:
> I'm looking for a way to resize an allocatable CLASS(*) array
> that doesn't require use of the SELECT TYPE construct to effect
> the copying of values from one array to another.
I think Fortran 2008's (re)allocate on assignment does what you want -
in F2003 that was not allowed.
> Sourced-allocation is a powerful method of cloning a
> polymorphic array without needing to identify specific types, but
> the source must be the same shape (or a scalar) as the
> allocated array
I think also that has changed with Fortran 2008.
Tobias
|