Re: Please help me understand my code
- From: dpb <none@xxxxxxx>
- Date: Fri, 29 Jun 2007 08:54:20 -0500
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
...then there's (7+II+1); is the third term incrementing or adding el?This source is hard to read. This looks like cyrillic:Worse than Cyrillic, I am guessing it is part of a model involving soil properties (temps, freezing point/depths maybe, moisture paramters)...
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
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.
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., ... :)
--
.
- References:
- Please help me understand my code
- From: www
- Re: Please help me understand my code
- From: Wade Ward
- Re: Please help me understand my code
- From: J. F. Cornwall
- Re: Please help me understand my code
- From: Wade Ward
- Please help me understand my code
- Prev by Date: Re: C++ Bounds Checking
- Next by Date: Re: concatenation for a filename
- Previous by thread: Re: Please help me understand my code
- Next by thread: Re: Please help me understand my code
- Index(es):