Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable CvodeF checkpointing (#2645)
amici wants to avoid sundials' checkpointing, that's we set `steps` (the number of integration steps at which a checkpoint is created) for `CVodeAdjInit` to the maximum number of integration steps (`mxsteps`) for the forward problem. However, the checkpoint is created at step `steps`, not at step `steps + 1`. Therefore, if the forward integration takes exactly `mxsteps`, a checkpoint is still created. This is not a problem per se, but it may trigger segfaults under circumstances not fully understood (-> LLNL/sundials#49). Although unlikely, it still occasionally crashes long running optimizations. This change should make sure that checkpointing never occurs.
- Loading branch information