-
Notifications
You must be signed in to change notification settings - Fork 13
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
Core implementation of MultiPatch #161
Conversation
} | ||
|
||
// form mismatch info | ||
std::string mismatch_info{}; |
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.
stringstream?
for more information, see https://pre-commit.ci
I am currently checking my scripts with the objective to compare the newly created files to existing ones. So far I still run into some issues, but I think it's because you slightly changed the syntax. I hope to get this sorted out by the end of the day |
Happy to announce that it passed the test - except for the two comments I made earlier. I get the same results with both implementations. Hopefully, this proves the validity. |
great! |
Co-authored-by: jzwar <63095162+jzwar@users.noreply.github.com>
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.
There are still 6 files on my to read list but it looks really good so far. Please check out the remarks till here and if I take too long send me a text and I will approve. This PR should not be yolo-ed!
splines=None, | ||
interfaces=None, | ||
): | ||
def __init__(self, splines=None, interfaces=None, *, spline=None): |
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.
What is the-* used for?
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.
makes sure spline
is only set as keyword. say, Multipatch(splines, interfaces, garbage)
will raise TypeError regarding number of positional argument
) | ||
|
||
# Transform bezier types, as they are not supported in gismo | ||
if spline.name.startswith("Bezier"): |
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.
Here is really where current gustaf functions would shine
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 could use BSpline(splinepy.splinepy_core.same_spline_with_knot_vectors())
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.
Thank you for putting in so much effort. I hope this helps establish the use of the multipatch class for other users as well, and provides a sufficient core implementation for gustaf as well.
Please bump version.
Thanks for taking time to review! Next PRs with extended scopes are on their way |
Overview
Implements multipatch core
PyMultiPatch
. Functions that require looping over a large array is now implemented in cpp. if applicable, also with multi-threading capabilities.Addressed issues
Checklists