Code: Select all

```
moi_switch = 1
match moi_switch:
case 0:
h.CVode().use_daspk()
self.cell.integration_method = 'SUNDIALS - DASPK'
case 1:
h.secondorder = 2
self.cell.integration_method = 'Crank-Nicholson'
case 2:
h.CVode().use_mxb(0)
self.cell.integration_method = 'SUNDIALS - MXB (structured)'
case 3:
h.CVode().use_mxb(1)
self.cell.integration_method = 'SUNDIALS - MXB (sparse)'
case 4:
h.CVode().stiff(2)
self.cell.integration_method = 'SUNDIALS - backwards Euler'
case 5:
h.CVode().stiff(0)
self.cell.integration_method = 'Adams-Bashforth'
case _:
self.cell.integration_method = 'Backwards Euler'
pass
```