- #1
tothetop
- 2
- 0
Suppose I have a global variable like "GauntCoefficients".. and I want to use it in a formula in the next block of code. In C++, I might do something like this to make the code more readable:
const int* gc = GauntCoefficients;
(then write some nasty formula with "gc" rather than "GauntCoefficients" everywhere)
Since "gc" is declared here as a constant, the compiler should just delete it (I think). And since "gc" id declared locally.. it doesn't pollute the namespace.
Can I do something like that in Fortran?
const int* gc = GauntCoefficients;
(then write some nasty formula with "gc" rather than "GauntCoefficients" everywhere)
Since "gc" is declared here as a constant, the compiler should just delete it (I think). And since "gc" id declared locally.. it doesn't pollute the namespace.
Can I do something like that in Fortran?