-
Notifications
You must be signed in to change notification settings - Fork 62
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
Performance issues w/ mesh attribute retrieval #216
Comments
As for
As for '''mesh.GetElementTransformation(i)''', I realized that it calls Tr = IsoparametricTransformation() every time, |
Thank you very much for your answer! 🙂 The first part worked really well! Regarding the speed up of
If you see a way to make it more efficient, please let me know! 🙂 Thank you in advance for your time and effort! |
Hi @tradeqvest What is the size of the problem you are working with?
The reason I ask is because if Nel << Npoints it may be worthwhile, as a first pass, to construct a mapping of your transformations for all elements, then access them in the for loop, rather than reinitializing. I ran a quick profile and it looks like although I'm not aware of a vectorized solution (maybe @sshiraiwa) might know. Could you try those two things and see if it improves your speed? |
Hello,
For my application, I constantly need to retrieve mesh element attributes, i.a.
mesh.GetElementTransformation(i)
ormesh.GetElementVertices(i)
. As this requires looping over each element, the performance suffers significantly. Is there any way to do it more efficiently that I am overlooking? Is there a way to vectorize the retrieval?I would appreciate any insights! Thanks in advance for your time and help!
The text was updated successfully, but these errors were encountered: