Fix Netgen permutation - #5034
Conversation
ae9b3f7 to
b8376af
Compare
|
@KarsKnook might be what you are looking for, can you take a look ? :) |
#5277 targets #5215 but this problem with the tolerances is a real bug (some high-order netgen meshes end up with self-intersecting cells), so we should ideally be targeting release. Are you okay with a cython rework of high-order netgen meshes going into release? |
Of course not. If this fixes a real bug in |
b8376af to
9b1829d
Compare
Done |
Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
connorjward
left a comment
There was a problem hiding this comment.
Yes this much better. I think that this is not just me being picky. This is radically clearer for anyone else coming to this code for this first time.
connorjward
left a comment
There was a problem hiding this comment.
I still don't understand the maths, but that's a me issue. This is probably fine.
|
I'm very very happy with this, it's nice to see that you find a better way to construct the mapping. |
This is just a patch. The correct approach is #5277 |
Description
Attempting to make
find_permutationmore robust by comparing reference coordinates and usingnumpy.argminas opposed to taking an arbitary tolerance, which is now deprecated.The correct fix is to use a PETSc Section: #5277