-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.sim: cleanup of global variables #5044
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love these cleanups, so much readable and manageable code, thanks!
I only left some minor suggestions.
scan-build
reported a number of issues. Although they are probably not introduced by this PR, I attached the report (html bundle) here for easy check:
Thanks! I will look at it, maybe address some of these in a later PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petrasovaa are you planning on removing waterglobs.h
? If not, add a comment in the file explaining it's purpose and add nice comment's to the obscure variables names.
int maxwab; | ||
double step, conv; | ||
typedef struct { | ||
double halpha; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments explaining what these variables are.
struct WaterParams { | ||
double xmin, ymin, xmax, ymax; | ||
double mayy, miyy, maxx, mixx; | ||
typedef struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some comments here to document what this geometry struct is design to do.
This is an effort to get clean up the r.sim code:
nwalka
variable)There will be more changes/fixes, but perhaps it would be good to get this merged first.