Fix wrong print, remove unused variables

This commit is contained in:
Tong Dong Qiu 2022-02-25 10:43:43 +01:00
parent 1cec56fa68
commit 6f89629f92
2 changed files with 1 additions and 8 deletions

View File

@ -393,15 +393,10 @@ void openclSolverBackend<block_size>::initialize(std::shared_ptr<BlockedMatrix>
useJacMatrix = true;
}
if (useJacMatrix) {
this->jac_nnz = jacMatrix->nnzbs;
this->jac_nnzb = jac_nnz * block_size * block_size;
}
std::ostringstream out;
out << "Initializing GPU, matrix size: " << Nb << " blockrows, nnzb: " << nnzb << "\n";
if (useJacMatrix) {
out << "Blocks in ILU matrix: " << jac_nnzb << "\n";
out << "Blocks in ILU matrix: " << jacMatrix->nnzbs << "\n";
}
out << "Maxit: " << maxit << std::scientific << ", tolerance: " << tolerance << "\n";
out << "PlatformID: " << platformID << ", deviceID: " << deviceID << "\n";

View File

@ -63,8 +63,6 @@ private:
std::vector<cl::Device> devices;
int jac_nnz;
int jac_nnzb;
bool useJacMatrix = false;
std::unique_ptr<Preconditioner<block_size> > prec;