-
Notifications
You must be signed in to change notification settings - Fork 707
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
Add more python wrappers for GridTools #10875
Conversation
594e5a2
to
692012c
Compare
GridGenerator::merge_triangulations(*tria_1, *tria_2, *tria); | ||
// We need to reassign tria to triangulation because tria was cleared | ||
// inside merge_triangulations. | ||
triangulation = tria; |
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.
So this part is not necessary anymore?
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.
This is what happens inside
dealii/source/grid/grid_generator.cc
Line 5976 in e9461de
result.create_triangulation(vertices, cells, subcell_data); |
Gigen that we pass the argument by reference, I don't see a need for this. Am I missing something?
more general version of the GridTools::merge_triangulations is | ||
implemented | ||
<br> | ||
(Alexander Grayver, 2020/09/01) |
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.
You technically also introduce an incompatibility in merge_triangulation
So can you add an entry there.
/rebuild |
Thanks, @Rombur! I added an incompatibility note. Also, I added two optional parameters of the original C++ function to the python wrapper. |
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.
This looks good but since the tester is failing can you rebase the PR on master to see if it fixes the problem.
fc7ecc9
to
d80a06e
Compare
@Rombur should be good now. |
merge_triangulations
wrapper that accepts only two triangulations with a more generic equivalent.Part of #9015