mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 12:47:42 -06:00
resolve copilot feedback
This commit is contained in:
1 parent
9d09812877
commit
edbf224e94
3 files changed
+5
-5
No files matched your search
@@ -108,7 +108,7 @@ GpuDILU<M, X, Y, l>::GpuDILU(const typename GpuDILU<M, X, Y, l>::GPUMatrix& gpuM
|
||||
}
|
||||
}
|
||||
|
||||
// Precompute diagaon indices and handle the actual reordering if that is enabled.
|
||||
// Precompute diagaonal block element indices and handle the actual reordering if that is enabled.
|
||||
if (m_reorder) {
|
||||
detail::computeDiagIndices<field_type>(m_gpuMatrixReordered->getNonZeroValues().data(),
|
||||
m_gpuMatrixReordered->getRowIndices().data(),
|
||||
|
||||
+2
-2
@@ -99,7 +99,7 @@ computeDiagIndicesNoReorder(const T* mat,
|
||||
|
||||
// launch kernel
|
||||
cuComputeDiagIndicesNoReorder<T>
|
||||
<<<threadBlockSize, nThreadBlocks>>>(mat, rowIndices, colIndices, indexConversion, rows, diagIndices);
|
||||
<<<nThreadBlocks, threadBlockSize>>>(mat, rowIndices, colIndices, indexConversion, rows, diagIndices);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
@@ -119,7 +119,7 @@ computeDiagIndices(const T* mat,
|
||||
|
||||
// launch kernel
|
||||
cuComputeDiagIndices<T>
|
||||
<<<threadBlockSize, nThreadBlocks>>>(mat, rowIndices, colIndices, reorderedToNatural, rows, diagIndices);
|
||||
<<<nThreadBlocks, threadBlockSize>>>(mat, rowIndices, colIndices, reorderedToNatural, rows, diagIndices);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ namespace Opm::gpuistl::detail
|
||||
not recomputing indices during each update kernel.
|
||||
*/
|
||||
/**
|
||||
* @brief Computes indices of diagonal elements for reordered GPU preconditioner.
|
||||
* @brief Computes indices of diagonal elements for non-reordered GPU preconditioner.
|
||||
*
|
||||
* @tparam T Matrix element type
|
||||
* @param[in] mat The matrix in BCSR format
|
||||
@@ -52,7 +52,7 @@ void computeDiagIndicesNoReorder(const T* mat,
|
||||
size_t* diagIndices);
|
||||
|
||||
/**
|
||||
* @brief Computes indices of diagonal elements for non-reordered GPU preconditioner.
|
||||
* @brief Computes indices of diagonal elements for reordered GPU preconditioner.
|
||||
*
|
||||
* @tparam T Matrix element type
|
||||
* @param[in] mat The matrix in BCSR format
|
||||
|
||||
Reference in new issue
Block a user