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 T>
template <class M> template <class VectorType>
void void
CuSparseMatrix<T>::assertSameSize(const M& x) const CuSparseMatrix<T>::assertSameSize(const VectorType& x) const
{ {
if (x.dim() != blockSize() * N()) { if (x.dim() != blockSize() * N()) {
OPM_THROW(std::invalid_argument, 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(), x.dim(),
blockSize() * N())); blockSize() * N()));
} }

View File

@ -295,8 +295,8 @@ private:
detail::CuSparseMatrixDescriptionPtr m_matrixDescription; detail::CuSparseMatrixDescriptionPtr m_matrixDescription;
detail::CuSparseHandle& m_cusparseHandle; detail::CuSparseHandle& m_cusparseHandle;
template <class M> template <class VectorType>
void assertSameSize(const M& otherMatrix) const; void assertSameSize(const VectorType& vector) const;
}; };
} // namespace Opm::cuistl } // namespace Opm::cuistl
#endif #endif