1 Solver
Solver()Defines the numerical solver options.
For more details see https://docs.sciml.ai/DiffEqDocs/stable/basics/common_solver_opts/#solver_options.
1.1 Attributes
| Name | Type | Description |
|---|---|---|
| algorithm | str | The used numerical time integration algorithm (Optional, defaults to QNDF) |
| saveat | float | Time interval in seconds between saves of output data. 0 saves every timestep, inf only saves at start- and endtime. (Optional, defaults to 86400) |
| dt | float | Timestep of the solver. (Optional, defaults to None which implies adaptive timestepping) |
| dtmin | float | The minimum allowed timestep of the solver (Optional, defaults to 0.0) |
| dtmax | float | The maximum allowed timestep size (Optional, defaults to 0.0 which implies the total length of the simulation) |
| force_dtmin | bool | If a smaller dt than dtmin is needed to meet the set error tolerances, the simulation stops, unless force_dtmin = true (Optional, defaults to False) |
| abstol | float | The absolute tolerance for adaptive timestepping (Optional, defaults to 1e-7) |
| reltol | float | The relative tolerance for adaptive timestepping (Optional, defaults to 1e-7) |
| maxiters | int | The total number of linear iterations over the whole simulation. (Defaults to 1e9, only needs to be increased for extremely long simulations) |
| sparse | bool | Whether a sparse Jacobian matrix is used, which gives a significant speedup for models with >~10 basins. |
| autodiff | bool | Whether automatic differentiation instead of fine difference is used to compute the Jacobian. (Optional, defaults to true) |