On Thu, 24 Apr 2008 14:17:13 GMT, Dick Hendrickson
<dick.hendrickson@[EMAIL PROTECTED]
>
wrote:
>> On 4月24日, 上午11时37分, Mike <Sulfate...@[EMAIL PROTECTED]
> wrote:
>> the default for the values of all the local variables and arrays in a
>> procedure is "save" attribute, so it is better for you to give initial
>> values for
>> the local variables in the execute line.
>NO,NO,NO! The default for all local variables (an array is a
>variable) is NOT save. Unless you specifically do something,
>all variables start out undefined and become undefined when
>a procedure returns. This is different from some other
>languages.
Dick is correct that, by the Fortran language, the default is not SAVE,
CVF,
however, applies such a default as an extension. Intel Fortran, as it
happens, does not. (There is an option /Qsave).
As suggested earlier, /recursive will disable the assumed SAVE semantics
(except for initialized variables).
--
Steve Lionel
Developer Products Division
Intel Cor****ation
Nashua, NH
For email address, replace "invalid" with "com"
User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Sup****t
http://sup****t.intel.com/sup****t/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran


|