Include Fortran Code which Returns Arrays of Dynamic/Unknown Size
David Bateman
dbateman at dbateman.org
Mon Oct 13 14:37:32 CDT 2008
Marco2008 wrote:
>
> Thanks for the hint. I tried it with simple integer and real variables as
> well as with arrays of fixed size and it has worked well. But the SAVE
> attribute does not work with arrays of dynamic size:
> INTEGER, SAVE :: k1(:) ! does not work
> I am not sure if there is another trick to use SAVE and arrays with unknown
> size anyway. I tried something with a saved pointer. It compiled but some
> values of the array had changed in the second call.
Well SAVE is an F77 keyword and so this doesn't really surprise me.
Isn't there a F90 keyword for static variables?
D.
--
David Bateman dbateman at dbateman.org
35 rue Gambetta +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob)
More information about the Help-octave
mailing list