Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Expose HasMasterSlaveConstraint from ModelPart to python #11582

Merged

Conversation

loumalouomega
Copy link
Member

馃摑 Description

Expose HasMasterSlaveConstraint from ModelPart to python + adding test

馃啎 Changelog

@loumalouomega loumalouomega added Kratos Core Python Testing Incomplete FastPR This Pr is simple and / or has been already tested and the revision should be fast labels Sep 20, 2023
@loumalouomega loumalouomega requested a review from a team as a code owner September 20, 2023 17:35
Comment on lines +938 to +940
.def("HasMasterSlaveConstraint", [](ModelPart& rModelPart, ModelPart::IndexType MasterSlaveConstraintId) -> bool {
return rModelPart.HasMasterSlaveConstraint(MasterSlaveConstraintId);
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do it without the lambda in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because of the mesh index...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argggg... 馃槨

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mesh index delenda est

@loumalouomega loumalouomega merged commit 9ba7d57 into master Sep 21, 2023
11 checks passed
@loumalouomega loumalouomega deleted the core/adding-HasMasterSlaveConstraint-model-part-python branch September 21, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FastPR This Pr is simple and / or has been already tested and the revision should be fast Incomplete Kratos Core Python Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants