mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix ILU0 creation for NONE reordering
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user