Renamed types.

This commit is contained in:
Kjetil Olsen Lye 2023-05-30 10:30:55 +02:00
parent ed2747db1c
commit 1bd2edb003
2 changed files with 5 additions and 5 deletions

View File

@ -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()));
}

View File

@ -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