Commit 92a7a9a
committed
Fix crash for models without state variables
Previously, `nx_solver=0` would have in a crash when calling `amici::SUNMatrixWrapper::capacity` on 0-sized `SUNMatrixWrapper`.
Unrelated: Replace some unnecessary `std::vector::at` calls.1 parent 9ea6aef commit 92a7a9a
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | | - | |
| 2878 | + | |
2879 | 2879 | | |
2880 | 2880 | | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | 2884 | | |
2885 | | - | |
| 2885 | + | |
| 2886 | + | |
2886 | 2887 | | |
2887 | 2888 | | |
2888 | 2889 | | |
2889 | 2890 | | |
2890 | 2891 | | |
2891 | | - | |
2892 | | - | |
2893 | | - | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
2894 | 2895 | | |
2895 | 2896 | | |
2896 | | - | |
| 2897 | + | |
2897 | 2898 | | |
2898 | 2899 | | |
2899 | 2900 | | |
| |||
0 commit comments