-
Notifications
You must be signed in to change notification settings - Fork 292
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
Refactor Tet::choose_diagonal() #4117
base: devel
Are you sure you want to change the base?
Conversation
3ad6663
to
4502702
Compare
Right, I can't really decide if this useful or not. |
I did.
It was. But this is not a good test because |
What was your motivation in creating the PR? Just because we can't easily recreate the scenario in a unit test doesn't mean that the change is useless...
OK, well it would be easier for me (and anyone viewing this PR in the future!) to follow along with what's going on if you leave the comment history intact (maybe use strikethrough text or something) and avoid force-pushing the branch while it's under discussion. |
In a sentence: I'm not sure our tetrahedral refinement is trustworthy. I started playing with vector fe ex4, and noticed that the solution would be all weird with
Yes, you're right, I was hoping you hadn't seen the comment yet, I apologise. BUT, this PR has already revealed something at least, choosing a different diagonal is causing the MOOSE non-conformal tests to fail - and I have no idea why, because the new nodes are exactly the same. But it feels like progress - or worst case scenario, the MOOSE checks are not robust. |
Yep, that was MOOSE: idaholab/moose#30196. |
This is true, but it wouldn't be hard to fix. We'd need to pass an optional I'm not sure this PR is useful (there's always going to be some grid resolution where floating point error works out differently at different places, and instead of getting to a tie we can disambiguate lexicographically, we get to an almost-tie that goes one way or another), but I'm still stubbornly wondering if "permute elements after changing the diagonal selection" can teach us more - we wouldn't want to make a more sweeping change permanent, but selecting diagonals based on something like only physical point ordering might still help you with debugging. |
Yes, of course. The usefulness of this, if any, comes only from pure node reorderings. With this, you get the same mesh, no matter how you count. That's all. For instance:
I'm not sure I understand, sorry. |
We've decided spending the extra effort on the tie-break is probably not worth it, so this PR is now just a very minor refactor. |
Hi,
This still doesn't resolve the main issue, but removes the uncertainty from nodal permutations out of the equation...
Cheers,
-N