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 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()));
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user