mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Renamed types.
This commit is contained in:
parent
ed2747db1c
commit
1bd2edb003
@ -286,13 +286,13 @@ CuSparseMatrix<T>::usmv(T alpha, const CuVector<T>& x, CuVector<T>& y) const
|
||||
}
|
||||
|
||||
template <class T>
|
||||
template <class M>
|
||||
template <class VectorType>
|
||||
void
|
||||
CuSparseMatrix<T>::assertSameSize(const M& x) const
|
||||
CuSparseMatrix<T>::assertSameSize(const VectorType& x) const
|
||||
{
|
||||
if (x.dim() != blockSize() * N()) {
|
||||
OPM_THROW(std::invalid_argument,
|
||||
fmt::format("Size mismatch. Input vector has {} elements, while we have {} elements.",
|
||||
fmt::format("Size mismatch. Input vector has {} elements, while we have {} rows.",
|
||||
x.dim(),
|
||||
blockSize() * N()));
|
||||
}
|
||||
|
@ -295,8 +295,8 @@ private:
|
||||
detail::CuSparseMatrixDescriptionPtr m_matrixDescription;
|
||||
detail::CuSparseHandle& m_cusparseHandle;
|
||||
|
||||
template <class M>
|
||||
void assertSameSize(const M& otherMatrix) const;
|
||||
template <class VectorType>
|
||||
void assertSameSize(const VectorType& vector) const;
|
||||
};
|
||||
} // namespace Opm::cuistl
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user