-
Notifications
You must be signed in to change notification settings - Fork 250
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
Expose Dof
Index
#13161
base: master
Are you sure you want to change the base?
Expose Dof
Index
#13161
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.
Expose into python too, LGTM
Btw, I have no issues with this PR (other than the comment from @loumalouomega). There might be a problem with the usage though: as i remember the list of dofs is dynamic, so that if you add or remove dof the index will change |
That's fine. What I need is the index of the Dof's variable within the Kratos/kratos/containers/variables_list.h Lines 282 to 300 in a14ec2f
I'll extend the docstring to clarify what EDIT: actually, that reordering is a problem. Is there are reason why |
A requirement for solving #13160. This PR makes it possible to refer to
Dof
s with two integers (node ID, dof index within node) instead of a direct pointer.