Page 1 of 1
small bug in GYRE 5.0
Posted: Mon Nov 28, 2016 2:55 pm
by Mathias
Dear Rich
While digging around in GYRE 5.0, I noticed a bug in "gyre/src/build/gyre_grid_par.f90".
In line 100, the namelist contains two times "x_i", but doesn't contain "x_o".
Best regards
Mathias
Re: small bug in GYRE 5.0
Posted: Mon Nov 28, 2016 3:16 pm
by rhtownsend
Mathias wrote:Dear Rich
While digging around in GYRE 5.0, I noticed a bug in "gyre/src/build/gyre_grid_par.f90".
In line 100, the namelist contains two times "x_i", but doesn't contain "x_o".
Best regards
Mathias
Well spotted -- I'll fix in the full release (which may be delayed a little; I've decided to switch over to a proper documentation format, as the Bitbucket Wiki is just not flexible enough).
cheers,
Rich
Re: small bug in GYRE 5.0
Posted: Sun Dec 11, 2016 6:54 am
by ehsan
Great catch Mathias.
Then, my question to Rich is: How come the compiler does not catch this? I guess it is not allowed that one variable be defined more than once within the scope of the same module/subroutine.
Or I might be wrong.
Regards,
Ehsan.
Re: small bug in GYRE 5.0
Posted: Mon Dec 12, 2016 8:13 am
by rhtownsend
ehsan wrote:Great catch Mathias.
Then, my question to Rich is: How come the compiler does not catch this? I guess it is not allowed that one variable be defined more than once within the scope of the same module/subroutine.
Or I might be wrong.
Regards,
Ehsan.
I think a variable can be listed multiple times in a namelist declaration.
cheers,
Rich