Skip to content

Commit 707da85

Browse files
committed
Add silence_sundials_errors solver option (#5290)
* feat: add`silence_sundial_warnings` solver option * refactor: `silence_sundials_warnings` -> `silence_sundials_errors`
1 parent 65f3326 commit 707da85

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Features
44

5+
- Adds `silence_sundials_errors` IDAKLU solver option with `default=False` to match historical output. ([#5290](https://github.com/pybamm-team/PyBaMM/pull/5290))
6+
57
## Bug fixes
68

79
# [v25.10.2](https://github.com/pybamm-team/PyBaMM/tree/v25.10.2) - 2025-11-27

src/pybamm/solvers/idaklu_solver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ class IDAKLUSolver(pybamm.BaseSolver):
7676
"increment_factor": 1.0,
7777
# Enable or disable linear solution scaling
7878
"linear_solution_scaling": True,
79+
# Silence Sundials errors during solve
80+
"silence_sundials_errors": False,
7981
## Main solver
8082
# Maximum order of the linear multistep method
8183
"max_order_bdf": 5,
@@ -176,6 +178,7 @@ def __init__(
176178
"epsilon_linear_tolerance": 0.05,
177179
"increment_factor": 1.0,
178180
"linear_solution_scaling": True,
181+
"silence_sundials_errors": False,
179182
"max_order_bdf": 5,
180183
"max_num_steps": 100000,
181184
"dt_init": 0.0,

0 commit comments

Comments
 (0)