Update comments

This commit is contained in:
Tong Dong Qiu 2021-11-23 10:52:09 +01:00
parent ca44351c72
commit 19a0454b6f
2 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,8 @@ void CPR<block_size>::create_preconditioner(BlockedMatrix *mat_) {
}
}
// transform blocks to scalars
// extract pressure
// transform blocks to scalars to create scalar linear system
for (int row = 0; row < Nb; ++row) {
int start = mat->rowPointers[row];
int end = mat->rowPointers[row + 1];

View File

@ -507,7 +507,8 @@ void OpenclKernels::apply_stdwells_no_reorder(cl::Buffer& d_Cnnzs_ocl, cl::Buffe
)";
}
// multiply vector with another vector, element-wise
// multiply vector with another vector and a scalar, element-wise
// add result to a third vector
std::string OpenclKernels::get_vmul_source() {
return R"(
__kernel void vmul(