Re: Please help me understand my code



Wade Ward wrote:
"J. F. Cornwall" <JCornwall@xxxxxxx> wrote in message news:Lu_gi.654740$2Q1.121574@xxxxxxxxxxxxxxx
Wade Ward wrote:

"www" <www@xxxxxxxxxx> wrote in message
....

This source is hard to read. This looks like cyrillic:
DZ2 = FGPM(7+II) - FGPM(7+II+1)
Without knowing what a dizzy2 is, it's hard to make sense of it. I'd recommend renaming variables to reflect a kinder, gentler fortran. Do you have a caller?
--
Wade Ward
Worse than Cyrillic, I am guessing it is part of a model involving soil properties (temps, freezing point/depths maybe, moisture paramters)...

But yeah, it's hard to read. I hate it when authors write code and forget the existence of a space bar on their keyboard.
...then there's (7+II+1); is the third term incrementing or adding el?

That seems patently clear to me -- the subtraction, the "dZ" (I would have used the mixed case in recent code but this is old enough that uppercase _may_ have still been required by the compiler) and the "but one" offset between the two terms subscripts makes it pretty clear this is the first-order differential in the "Z" coordinate of whatever quantity FGPM is.

imo, ymmv, $0.02, etc., ... :)

--

.