I am trying to run CCSM3 (Community Climate System Model) and have found that variables in one of its subroutines are not retained between calls while the word ‘save’ presents.
This word is present single after the declaration of all variables in the subroutine.
The problem was solved with adding ‘save’ to the declaration of variables which caused error messages.
I have found the following in the PGI Fortran reference
“SAVE may be used without a list, in which case all the allowable entities within the module are saved (this has the same effect as using the -Msave command-line option).”
How does the compiler define, which entity is allowable for saving and which is not?
Debian Linux with kernel 2.6.15.
The SMP computer with 4 AMD Opteron processors.
The compiler is PGI 6.1-2, 64 bit target on x86-64 Linux.
The full problem description is here: