help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include Fortran Code which Returns Arrays of Dynamic/Unknown Size


From: David Bateman
Subject: Re: Include Fortran Code which Returns Arrays of Dynamic/Unknown Size
Date: Mon, 13 Oct 2008 20:37:32 +0100
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

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                                address@hidden
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]