Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 17, 2022
1 parent ec5d05f commit 2b80d6b
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions tests/unit/test_solvers/test_idaklu_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,24 +496,28 @@ def test_options(self):
}
solver = pybamm.IDAKLUSolver(options=options)
if (
jacobian == "none" and (
linear_solver == "SUNLinSol_Dense" or
linear_solver == "SUNLinSol_LapackDense"
) or
jacobian == "dense" and (
linear_solver == "SUNLinSol_Dense" or
linear_solver == "SUNLinSol_LapackDense"
) or
jacobian == "sparse" and (
linear_solver != "SUNLinSol_Dense" and
linear_solver != "SUNLinSol_LapackDense" and
linear_solver != "garbage"
) or
jacobian == "matrix-free" and (
linear_solver != "SUNLinSol_KLU" and
linear_solver != "SUNLinSol_Dense" and
linear_solver != "SUNLinSol_LapackDense" and
linear_solver != "garbage"
jacobian == "none"
and (
linear_solver == "SUNLinSol_Dense"
or linear_solver == "SUNLinSol_LapackDense"
)
or jacobian == "dense"
and (
linear_solver == "SUNLinSol_Dense"
or linear_solver == "SUNLinSol_LapackDense"
)
or jacobian == "sparse"
and (
linear_solver != "SUNLinSol_Dense"
and linear_solver != "SUNLinSol_LapackDense"
and linear_solver != "garbage"
)
or jacobian == "matrix-free"
and (
linear_solver != "SUNLinSol_KLU"
and linear_solver != "SUNLinSol_Dense"
and linear_solver != "SUNLinSol_LapackDense"
and linear_solver != "garbage"
)
):
works = True
Expand Down

0 comments on commit 2b80d6b

Please sign in to comment.