Belos Version of the Day
New attribute methods
|static ptrdiff_t||GetGlobalLength (const MV &mv)|
|Obtain the vector length of |
An extension of the MultiVecTraits class that adds a new vector length method.
This traits class provides a 64-bit compatible method, GetGlobalLength(), that returns the number of rows in a multivector. GetGlobalLength() will replace the GetVecLength() method in MultiVecTraits, which is not 64-bit compatible. GetVecLength() will be deprecated, and will be removed in the next major Trilinos release.
For now, GetGlobalLength() will call the GetVecLength() method by default for any traits implementation that does not specialize this class. If you have written a specialization of MultiVecTraits for your own multivector type MV, and if MV does not support returning the number of rows as a 64-bit integer, then you don't need to do anything. If your MV class does support this, then you should write a specialization of MultiVecTraitsExt that reimplements GetGlobalLength(). Otherwise, you risk overflowing the
int return value of GetVecLength().
|static ptrdiff_t Belos::MultiVecTraitsExt< ScalarType, MV >::GetGlobalLength||(||const MV &||mv||)||