Skip to content

Commit

Permalink
#1104 tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Jul 13, 2020
1 parent 81eb538 commit 107f7ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pybamm/solvers/jax_bdf_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from jax.interpreters import partial_eval as pe
from jax import linear_util as lu
from jax.config import config
from jax.lib import pytree

config.update("jax_enable_x64", True)

Expand Down Expand Up @@ -685,8 +684,8 @@ def block_fun(i, j, Ai, Aj):
)

blocks = [
[ block_fun(i, j, Ai, Aj) for j, Aj in enumerate(lst)]
for i, Ai in enumerate(lst)
[block_fun(i, j, Ai, Aj) for j, Aj in enumerate(lst)]
for i, Ai in enumerate(lst)
]

return jnp.block(blocks)
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_solvers/test_jax_bdf_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def fun(y, t):
np.testing.assert_allclose(y[:, 0], np.exp(0.1 * t_eval),
rtol=1e-7, atol=1e-7)


def test_solver_sensitivities(self):
# Create model
model = pybamm.BaseModel()
Expand Down

0 comments on commit 107f7ce

Please sign in to comment.