Skip to content

Commit

Permalink
update logging info for solutions list
Browse files Browse the repository at this point in the history
  • Loading branch information
rtimms committed Jan 27, 2021
1 parent 5a43747 commit 31e5b14
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pybamm/solvers/base_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,10 @@ def solve(
else:
pybamm.logger.info("Finish solving {} for all inputs".format(model.name))
pybamm.logger.info(
(
"Set-up time: {}, Solve time: {} (of which integration time: {}), "
"Total time: {}"
).format(
("Set-up time: {}, Solve time: {}, Total time: {}").format(
solutions[0].set_up_time,
sum([sol.solve_time for sol in solutions]),
sum([sol.integration_time for sol in solutions]),
sum([sol.total_time for sol in solutions]),
solutions[0].solve_time,
solutions[0].total_time,
)
)

Expand Down

0 comments on commit 31e5b14

Please sign in to comment.