Skip to content

Commit

Permalink
#2858 use idaklu solver for test_sensitivities if installed, otherwis…
Browse files Browse the repository at this point in the history
…e use casadi
  • Loading branch information
martinjrobins committed May 18, 2023
1 parent 51a4544 commit ef1b8df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def test_basic_processing(self):
def test_sensitivities(self):
model = self.model()
param = pybamm.ParameterValues("Ecker2015")
solver = pybamm.IDAKLUSolver()
if pybamm.have_idaklu():
solver = pybamm.IDAKLUSolver()
else:
solver = pybamm.CasadiSolver()
modeltest = tests.StandardModelTest(
model, parameter_values=param, solver=solver
)
Expand Down

0 comments on commit ef1b8df

Please sign in to comment.