Skip to content

Commit

Permalink
Merge pull request #1107 from pybamm-team/issue-1104-mass-matrix-for-bdf
Browse files Browse the repository at this point in the history
Issue 1104 mass matrix for bdf
  • Loading branch information
martinjrobins authored Jul 20, 2020
2 parents 4d10b27 + f6c51f9 commit b76042c
Show file tree
Hide file tree
Showing 6 changed files with 983 additions and 463 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Features

- Added support for index 1 semi-explicit dae equations and sensitivity calculations to JAX BDF solver ([#1107](https://github.com/pybamm-team/PyBaMM/pull/1107))
- Allowed keyword arguments to be passed to `Simulation.plot()` ([#1099](https://github.com/pybamm-team/PyBaMM/pull/1099))

## Optimizations
Expand Down
5 changes: 4 additions & 1 deletion pybamm/solvers/base_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,12 @@ def calculate_consistent_state(self, model, time=0, inputs=None):
-------
y0_consistent : array-like, same shape as y0_guess
Initial conditions that are consistent with the algebraic equations (roots
of the algebraic equations)
of the algebraic equations). If self.root_method == None then returns
model.y0.
"""
pybamm.logger.info("Start calculating consistent states")
if self.root_method is None:
return model.y0
try:
root_sol = self.root_method._integrate(model, [time], inputs)
except pybamm.SolverError as e:
Expand Down
Loading

0 comments on commit b76042c

Please sign in to comment.