Skip to content

Conversation

@RiccardoRossi
Copy link
Member

📝 Description
adding a tentative interface for vectorized functions of geometries. It can be expanded to other methods in the geometry

@RiccardoRossi RiccardoRossi requested a review from a team as a code owner January 4, 2026 22:04
Copy link
Member

@sunethwarna sunethwarna left a 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.

Comment on lines 212 to 220
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);
}
Copy link
Member

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?

Comment on lines 250 to 251
{
}
Copy link
Member

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.

@RiccardoRossi
Copy link
Member Author

@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

Copy link
Member

@sunethwarna sunethwarna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @RiccardoRossi :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants