Re: Please help me understand my code



Richard Maine wrote:
www <www@xxxxxxxxxx> wrote:

I am also surprised to find out that Fortran variables are case insensitive! This makes me realize that tsoil(8) is TSOIL(8). TSOIL is
an array declared and used at the top.

Ah. I hadn't thought of that possible confusion. I was thinking about
much more subtle things.

Do note that although the language allows you to be inconsistent in
case, many people advise adopting a style of being consistent in at
least using the same case for all appearances of the same variable.

I understand that this isn't your code. Just advice for the future.

And for the OP a little background (but not trying to be more than superficial here) -- FORTRAN originally included only uppercase and the numbers plus special characters (+, -, etc.) so all code HAD to be written in uppercase only. Accepting lowercase became a common extension to the Standard and was added in later versions but to retain compatibility w/ existing code case-insensitivity was required to not break existing code.

--


.