mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
renamme resetMatrix()
This commit is contained in:
1 parent
831f332ac8
commit
bb7a3c15a8
5 files changed
+10
-10
No files matched your search
@@ -203,11 +203,11 @@ GpuSparseMatrix<T>::updateNonzeroValues(const GpuSparseMatrixGeneric<T>& matrix)
|
||||
|
||||
template <class T>
|
||||
void
|
||||
GpuSparseMatrix<T>::resetMatrix()
|
||||
GpuSparseMatrix<T>::setToZero()
|
||||
{
|
||||
// For blockSize == 1, use GpuSparseMatrixGeneric
|
||||
if (m_genericMatrixForBlockSize1) {
|
||||
m_genericMatrixForBlockSize1->resetMatrix();
|
||||
m_genericMatrixForBlockSize1->setToZero();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -342,9 +342,9 @@ public:
|
||||
void updateNonzeroValues(const GpuSparseMatrixGeneric<T>& matrix);
|
||||
|
||||
/**
|
||||
* @brief resetMatrix resets the matrix to zero values.
|
||||
* @brief setToZero resets the matrix to zero values.
|
||||
*/
|
||||
void resetMatrix();
|
||||
void setToZero();
|
||||
|
||||
/**
|
||||
* @brief Dispatches a function based on the block size of the matrix.
|
||||
|
||||
@@ -255,7 +255,7 @@ GpuSparseMatrixGeneric<T>::updateNonzeroValues(const GpuSparseMatrixGeneric<T>&
|
||||
|
||||
template <class T>
|
||||
void
|
||||
GpuSparseMatrixGeneric<T>::resetMatrix()
|
||||
GpuSparseMatrixGeneric<T>::setToZero()
|
||||
{
|
||||
cudaMemset(m_nonZeroElements.data(), 0, nonzeroes() * blockSize() * blockSize() * sizeof(T));
|
||||
}
|
||||
|
||||
@@ -265,9 +265,9 @@ public:
|
||||
void updateNonzeroValues(const GpuSparseMatrixGeneric<T>& matrix);
|
||||
|
||||
/**
|
||||
* @brief resetMatrix resets the matrix to zero values.
|
||||
* @brief setToZero resets the matrix to zero values.
|
||||
*/
|
||||
void resetMatrix();
|
||||
void setToZero();
|
||||
|
||||
/**
|
||||
* @brief Dispatches a function based on the block size of the matrix.
|
||||
|
||||
@@ -392,11 +392,11 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief resetMatrix resets the matrix to zero values.
|
||||
* @brief setToZero resets the matrix to zero values.
|
||||
*/
|
||||
void resetMatrix()
|
||||
void setToZero()
|
||||
{
|
||||
m_matrix->resetMatrix();
|
||||
m_matrix->setToZero();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user