-
Notifications
You must be signed in to change notification settings - Fork 37
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
Rename CellVariable
to Variable
, etc.
#867
Conversation
I'm happy with this. Planning on pulling this into KHARMA before I put in a review but could pass it faster if we want to expedite things. |
@bprather: I think it would be helpful to make sure there isn't some issue with the renaming when it is pulled into KHARMA (and other downstream codes). There is no need for a quick review, I was just going to put up other PRs that depend on this one and I doubt they will go as quickly since this was essentially a search and replace. |
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.
Looks good to me, I'm going to approve this now.
That said I did raise some minor questions about naming. Feel free to ignore but since this is a breaking change now is probably the time to optimize and future-proof (mainly for swarms) these names if such things are necessary.
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'm excited to see this finally moving!
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 tested the rename in AthenaPK, works fine with a simple find-and-replace in one file. The full test suite is still running but it's passing so far.
Edge and face variable will all live together with cell variables under Variable
with metadata to distinguish them, right?
On the rename of bvals_cc_in_one.hpp
to bvals_in_one.hpp
, do you foresee all variable boundary communications living under that header?
Thanks for testing it out
Yeah, that is what is implemented in #868.
Yeah, for boundary communication variables of all types will be communicated when |
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.
Using this successfully in KHARMA for a week now. I don't have boundary communication working downstream, but all the naming was easy to update & I'm happy with the names, and the code works just fine.
PR Summary
I am going back to start on adding face, etc. variables. PR #764 has gotten substantially out of sync with develop, so I think it is easier at this point to just redo what is there. I plan to do what is in that PR over a few new, smaller PRs.
This PR takes the first, simplest step and just removes
Cell
andcc
from the names of things in most places. It also adds checks in the communication routines that variables withMetadata::WithFluxes
andMetadata::FillGhosts
set also haveMetadata::Cell
set.I renamed the namespace
cell_centered_bvars
tovar_boundary_comm
and changed the directorybvals/cc
tobvals/bnd_flx_communication
so this is a breaking change for downstream codes.There is nothing substantive here I think, but any comments on the naming choices I made are welcome.
I didn't rename
MeshBlock::pvar_cc
,MeshBlock::vars_cc_
andMeshRefinement::pvars_cc_
, or any of thecc
that show up inamr_loadbalance.cpp
since these currently should only contain cell centered variables.PR Checklist