resolve copilot feedback

This commit is contained in:
Tobias Meyer Andersen committed 2025-06-26 13:47:48 +02:00
1 parent 9d09812877
commit edbf224e94
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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(),
@@ -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);
}
@@ -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