-
Notifications
You must be signed in to change notification settings - Fork 22
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
confusingly named variables in MPI backend #36
Comments
Getting/Setting/Using Node IDargodsm/src/backend/mpi/swdsm.cpp Lines 853 to 858 in 07f6d8c
getID() and argo_get_nid() do the same thing. getID() is used internally, while argo_get_nid() is called externally. I believe there should be no need for both and that they could be replaced by for example get_node_id() .
argodsm/src/backend/mpi/swdsm.cpp Lines 87 to 90 in 07f6d8c
rank and workrank denote the same thing but are set differently, and rank is redundant as it is not used outside of the following line:argodsm/src/backend/mpi/swdsm.cpp Line 848 in 07f6d8c
|
Variables
|
unsigned long id = 1 << getID(); | |
unsigned long invid = ~id; |
(and a few other locations in the code)
The variables
id
and its inverse invid
would benefit from a more descriptive name. getID()
returns the node ID as an integer, and one could expect that id
would in that case be the return value of getID()
, which it clearly is not.
As @lundgren87 noticed in #35 there are still many places where variables have confusing names. This issue is attempting to track instances of this as people find them while reading the code, so that information is easily found again later.
Fixing these variable names is a low priority, and it is not expected to be done all in one giant pull request, so feel free to
The text was updated successfully, but these errors were encountered: