Skip to content

Conversation

knarfnitram
Copy link
Contributor

Description and Context

Removes the element access operators from the class class Vector<int> and substitutes it either by get_values() or local_values_as_span().

Related Issues and Pull Requests

Related to #1121

@knarfnitram knarfnitram added the type: clean code Clean coding and good programming practices label Oct 9, 2025
@knarfnitram knarfnitram self-assigned this Oct 9, 2025
@knarfnitram knarfnitram added the taskforce: tpetra Issues related to the migration from Epetra to Tpetra label Oct 9, 2025
@knarfnitram knarfnitram added this to the Migration to Tpetra milestone Oct 9, 2025
for integer-based linalg vector.
@knarfnitram knarfnitram force-pushed the reduce-element-access-operator-vector-int branch from d4d1253 to 3114727 Compare October 9, 2025 15:51
Copy link
Member

@sebproell sebproell left a comment

Choose a reason for hiding this comment

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

I don't understand why you had to add the new Map constructor, but I guess it isn't wrong either. However, if you still want to add it, please address this comment.

and replaces get_values with get_local_values.
@knarfnitram knarfnitram force-pushed the reduce-element-access-operator-vector-int branch from 3114727 to f8af629 Compare October 10, 2025 06:24
Copy link
Contributor

@maxfirmbach maxfirmbach left a comment

Choose a reason for hiding this comment

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

I think this looks good. I like how simple the implementation turned out to be.

@knarfnitram knarfnitram merged commit b2f92fa into 4C-multiphysics:main Oct 13, 2025
29 checks passed
@knarfnitram knarfnitram deleted the reduce-element-access-operator-vector-int branch October 13, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

taskforce: tpetra Issues related to the migration from Epetra to Tpetra type: clean code Clean coding and good programming practices

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants