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 ShapeInfo::lexicographic_numbering and clarify documentation #16249
Comments
Regarding the name (which was given by me), I agree, but we probably need to make the solution backward compatible because those names might potentially be used in other codes. We could argue that this is in the For the documentation, extending the description would certainly be helpful. Do you want to make a suggestion? |
I understand the point with backward compatibility. A problem I see is that
I remember other discussions where we argued that |
These are good points, we should not introduce a second member variable with a copy of the same data. What I believe we have done in the past is to add a reference variable to the same data (that gets the declaration |
@kronbichler Exactly. See e059d9f. But don't forget to implement the copy-assignment/constructor, since the reference will disable the implicit ones. |
Seems to be a solution that has downsides as well but is at least backward compatible. |
I think I would skip "deal.II's numbering" and replace the first sentence e.g. by "This function generates the map from the lexicographic to the hierarchical numbering." In the second setence, I would skip "a lexicographic numbering of". Having looked at the deal.II documentation related to this topic, I could imagine a link to https://dealii.org/current/doxygen/deal.II/namespaceFETools.html#adce51f339387fc6d4a88be9ca0d31746 would actually be more helpful than to FEEvaluation or DoFHandler as done currently. |
As discussed here exadg/exadg#589 (comment), I believe the name
lexicographic_numbering
(https://dealii.org/current/doxygen/deal.II/structinternal_1_1MatrixFreeFunctions_1_1ShapeInfo.html#abad0471d12c4f07f3d83271377e24231) should be changed tolexicographic_to_hierarchical_numbering
, and the documentation should be clarified in terms of index/key and data of thestd::vector
.The text was updated successfully, but these errors were encountered: