Skip to content

Commit

Permalink
#2643 dont need to handle none anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Feb 14, 2023
1 parent ede7c98 commit 5faa557
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pybamm/solvers/idaklu_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,6 @@ def sensfn(resvalS, t, y, inputs, yp, yS, ypS):
"number_of_sensitivity_parameters": number_of_sensitivity_parameters,
}

int_jac_bw_upper = self._setup["jac_bandwidth_upper"]
int_jac_bw_lower = self._setup["jac_bandwidth_upper"]
if int_jac_bw_upper is None:
int_jac_bw_upper = -1
if int_jac_bw_lower is None:
int_jac_bw_lower = -1
solver = idaklu.create_casadi_solver(
len(y0),
self._setup["number_of_sensitivity_parameters"],
Expand All @@ -483,8 +477,8 @@ def sensfn(resvalS, t, y, inputs, yp, yS, ypS):
self._setup["jac_times_cjmass_colptrs"],
self._setup["jac_times_cjmass_rowvals"],
self._setup["jac_times_cjmass_nnz"],
int_jac_bw_lower,
int_jac_bw_upper,
jac_bw_lower,
jac_bw_upper,
self._setup["jac_rhs_algebraic_action"],
self._setup["mass_action"],
self._setup["sensfn"],
Expand Down

0 comments on commit 5faa557

Please sign in to comment.