@@ -496,24 +496,28 @@ def test_options(self):
496
496
}
497
497
solver = pybamm .IDAKLUSolver (options = options )
498
498
if (
499
- jacobian == "none" and (
500
- linear_solver == "SUNLinSol_Dense" or
501
- linear_solver == "SUNLinSol_LapackDense"
502
- ) or
503
- jacobian == "dense" and (
504
- linear_solver == "SUNLinSol_Dense" or
505
- linear_solver == "SUNLinSol_LapackDense"
506
- ) or
507
- jacobian == "sparse" and (
508
- linear_solver != "SUNLinSol_Dense" and
509
- linear_solver != "SUNLinSol_LapackDense" and
510
- linear_solver != "garbage"
511
- ) or
512
- jacobian == "matrix-free" and (
513
- linear_solver != "SUNLinSol_KLU" and
514
- linear_solver != "SUNLinSol_Dense" and
515
- linear_solver != "SUNLinSol_LapackDense" and
516
- linear_solver != "garbage"
499
+ jacobian == "none"
500
+ and (
501
+ linear_solver == "SUNLinSol_Dense"
502
+ or linear_solver == "SUNLinSol_LapackDense"
503
+ )
504
+ or jacobian == "dense"
505
+ and (
506
+ linear_solver == "SUNLinSol_Dense"
507
+ or linear_solver == "SUNLinSol_LapackDense"
508
+ )
509
+ or jacobian == "sparse"
510
+ and (
511
+ linear_solver != "SUNLinSol_Dense"
512
+ and linear_solver != "SUNLinSol_LapackDense"
513
+ and linear_solver != "garbage"
514
+ )
515
+ or jacobian == "matrix-free"
516
+ and (
517
+ linear_solver != "SUNLinSol_KLU"
518
+ and linear_solver != "SUNLinSol_Dense"
519
+ and linear_solver != "SUNLinSol_LapackDense"
520
+ and linear_solver != "garbage"
517
521
)
518
522
):
519
523
works = True
0 commit comments