Fix ILU0 creation for NONE reordering

This commit is contained in:
Tong Dong Qiu
2022-04-14 12:22:42 +02:00
parent 50d7c0f61d
commit cb1ee68967

View File

@@ -191,7 +191,9 @@ bool BILU0<block_size>::create_preconditioner(BlockedMatrix *mat, BlockedMatrix
auto *matToDecompose = jacMat;
if (opencl_ilu_reorder != ILUReorder::NONE) {
if (opencl_ilu_reorder == ILUReorder::NONE) { // NONE should only be used in debug
matToDecompose = jacMat ? jacMat : mat;
} else {
Timer t_reorder;
if (jacMat) {
matToDecompose = rJacMat.get();