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
small bug in GYRE 5.0
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: small bug in GYRE 5.0
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).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
cheers,
Rich
Re: small bug in GYRE 5.0
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.
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.
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: small bug in GYRE 5.0
I think a variable can be listed multiple times in a namelist declaration.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.
cheers,
Rich