Skip to content

Commit

Permalink
Merge pull request #1346 from pybamm-team/logging-times-for-solutions
Browse files Browse the repository at this point in the history
update logging info for solutions list
  • Loading branch information
rtimms committed Jan 27, 2021
2 parents 2d179f0 + 31e5b14 commit f8b58f2
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 f8b58f2

Please sign in to comment.