If you are using the arrays in two different subs in FORTRAN you can use COMMON blocks to do the magic:
COMMON oneDarray(1000)
for the sub accessing the 1d array and
COMMON threeDarray(10, 10, 10)
where you need 3d access. With an unnamed COMMON block you don't even have to worry about them being different lengths! ;-)
In reply to Re: 1d array into 3d
by GrandFather
in thread 1d array into 3d
by MKevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |