-
Notifications
You must be signed in to change notification settings - Fork 249
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
[GeoMechanicsApplication] Avoid hiding of overloaded virtual
members
#12849
Conversation
…FluidFlux2DDiffOrderCondition`
…Load2DDiffOrderCondition`
…iffOrderCondition`
…3DDiffOrderCondition`
…fOrderCondition` Also reformatted three unrelated files.
…MAT2DInterfaceLaw`
…MAT2DPlaneStrainLaw`
…amElementLinear2D2N`
…amElementLinear3D2N`
…cturalBaseElement`
…LagrangianUPwDiffOrderElement`
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.
Looks consistent.
Please explain to me why for U_Pw_condition.cpp this->create is used and for the others just create.
applications/GeoMechanicsApplication/custom_conditions/U_Pw_condition.cpp
Show resolved
Hide resolved
applications/GeoMechanicsApplication/custom_conditions/U_Pw_condition.cpp
Show resolved
Hide resolved
...pplication/custom_conditions/axisymmetric_line_normal_fluid_flux_2D_diff_order_condition.cpp
Show resolved
Hide resolved
bool& GetValue(const Variable<bool>& rThisVariable, bool& rValue) override; | ||
using LinearElastic2DInterfaceLaw::GetValue; |
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.
Looks like this is a candidate for using a plane strain and a 3D stress state.
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.
In fact, we may want to look into the differences with the recently introduced class GeoIncrementalLinearElasticInterfaceLaw
, and discuss whether we'd still like to keep this class or replace it by the new one.
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 are right. These should disappear when we remove the interface elements that derive from planes i.s.o. 2 lines and volumes i.s.o. 2 planes. They use continuum material properties ( E, nu ) i.s.o. distributed stiffnesses that are natural for interfaces.
Thank you for the code review. I hope that my explanation (see below) is clear enough. If not, feel free to ask for clarification. |
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.
Hi Anne, many thanks that you spent your time on this work which looks stupid on the first glance only.
I copied your explanation on this-> in my notes. ;)
📝 Description
SonarQube has found a significant number of code smells related to hiding of overloaded
virtual
members. This PR adds overloads of membersCreate
where needed. In other places,using
statements were sufficient to overcome the issues.