in reply to 1d array into 3d
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! ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 1d array into 3d
by BrowserUk (Patriarch) on Mar 31, 2009 at 05:00 UTC |