Xpetra: missing access routine getData for Xpetra::Vector
Created by: mayrmt
@trilinos/xpetra @lucbv
Expectations
It might be desired to have a specialized access routine getData()
for the Xpetra::Vector
that does not call the base class routine in Xpetra::MultiVector
.
Current Behavior
To access the data in a Xpetra::Vector
, one has to call the base class routine with argument getData(0)
to access the data of the very first column in the multivector, although it is clear that the Xpetra::Vector
only has one column.
Motivation and Context
This would emphasize the fact that the Xpetra::Vector
just has one column and make it more convenient to access its data.
Definition of Done
-
add getData()
andgetDataNonConst()
toXpetra::Vector
class -
add documentation -
add test
Possible Solution
The Xpetra::Vector::getData()
could just call Xpetra::MultiVector::getData(0)
.
Additional Information
Please let me know if this idea is total nonsense or if there are reasons to not do that.