-
Notifications
You must be signed in to change notification settings - Fork 248
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] Fix Average Element size calculator for 2D9N #12301
Conversation
Thanks for the fix @sunethwarna. After passing the checks I will approve it. |
@@ -867,7 +867,7 @@ double ElementSizeCalculator<2,4>::AverageElementSizeDerivative( | |||
template<> | |||
double ElementSizeCalculator<2,9>::AverageElementSize(const Geometry<Node >& rGeometry) | |||
{ | |||
return rGeometry.Length(); | |||
return rGeometry.Length() * 2.0; |
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.
hm so thats a hack for the hack?
Can you add a comment? :D
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.
done :)
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.
also if this passes, it is missing a test
given that this is a bit hackish, can you please add a test?
I am planning to add tests for all the geometries :) |
Will you add the tests in this PR or in future? |
I will do it with the same PR, but not today. Would you be able to wait until this Friday? |
Sure, we can wait. |
Ok I have added the tests. @philbucher @jgonzalezusua :) |
📝 Description
As mentioned in the title, this corrects the average length calculation of the
Quad2D9N
to be consistent with the linear computation.closes #12300
🆕 Changelog
Quad2D9N