Tuesday, 17 September 2013

Fortran character arrays

Fortran character arrays

I am looking for a way to address a body of character information with two
concurrent arrays in the same program unit.
For example, I want
CHARACTER(1) Array1(40960)
and
CHARACTER(4096) Array2(10)
pointing to the same body of information.
Note I have been careful in this example that the product of the
dimensions and rank of the arrays are the same.
I want the solution to be allocatable, so I don't think EQUIVALENCE or
COMMON would work.
Any ideas?

No comments:

Post a Comment