-
Notifications
You must be signed in to change notification settings - Fork 277
Add jacobians test adaptor #14095
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
base: master
Are you sure you want to change the base?
Add jacobians test adaptor #14095
Conversation
sunethwarna
left a comment
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 @RiccardoRossi . Minor comments.
| if (Datum == GeometriesTensorAdaptor::DatumType::ShapeFunctions) { | ||
| CollectShapeFunctions(pData, rContainer, Method, Shape); | ||
| } else if (Datum == GeometriesTensorAdaptor::DatumType::ShapeFunctionDerivatives) { | ||
| CollectShapeFunctionsDerivatives(pData, rContainer, Method, Shape); | ||
| } else if (Datum == GeometriesTensorAdaptor::DatumType::Jacobians) { | ||
| CollectJacobians(pData, rContainer, Method, Shape); | ||
| } else if (Datum == GeometriesTensorAdaptor::DatumType::IntegrationWeights) { | ||
| CollectIntegrationWeights(pData, rContainer, Method, Shape); | ||
| } |
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.
Curious why we don't use switch case in here? Wouldn't that be more readable?
| { | ||
| } |
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 usually add a compatibility check for the rOther.GetContainer() with the current containers in here.
Co-authored-by: Suneth Warnakulasuriya <[email protected]>
Co-authored-by: Suneth Warnakulasuriya <[email protected]>
|
@sunethwarna i corrected your comments (except the use of if case switch which i really do not like) to me this is ready to merge |
sunethwarna
left a comment
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 @RiccardoRossi :)
📝 Description
adding a tentative interface for vectorized functions of geometries. It can be expanded to other methods in the geometry