-
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
[GeoMechanicsAnalysis] separated start of code cleaning U Pw diff order element #11820
Conversation
…ntal linear material
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.
Thanks for splitting this part out of the other PR, this makes it easier to see what's going on and thanks for incorporating the comments. I still see room for improvement within the files, but I think this is a very nice first step in cleaning this class up.
I have just one question left about changes to a part which might not be sufficiently tested. Other than that, this is ready to be merged
applications/GeoMechanicsApplication/custom_elements/small_strain_U_Pw_diff_order_element.cpp
Show resolved
Hide resolved
for ( SizeType i = 0; i < NumUNodes; ++i ) { | ||
rResult[Index] = rGeom[i].GetDof( DISPLACEMENT_X ).EquationId(); | ||
++Index; | ||
rResult[Index] = rGeom[i].GetDof( DISPLACEMENT_Y ).EquationId(); | ||
++Index; | ||
if (Dim > 2) { | ||
rResult[Index] = rGeom[i].GetDof( DISPLACEMENT_Z ).EquationId(); | ||
++Index; | ||
} | ||
} | ||
for ( SizeType i = 0; i < NumPNodes; ++i ){ | ||
rResult[Index] = rGeom[i].GetDof( WATER_PRESSURE ).EquationId(); | ||
++Index; | ||
} |
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.
I like the improvement in this part, let's keep in mind for a next PR that we can extract a function here, since it seems identical for velocity and acceleration
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.
Thanks for the clean-up, looks good to me!
📝 Description
Start of reducing code smells in U Pw diff order element
Has been split of from the incremental linear material where this accidentally was included.
SonarCloud now shows 0 codesmells on this.