Skip to content
Snippets Groups Projects
user avatar
Nora Abi Akar authored
Fixes a bug caused by swapping the `time` and `time_to` vectors in the `shared_state` and not swapping the corresponding data pointers in the `threshold_watcher` and `mechanism`.
- This fix keeps the swapping optimization, and instead, the `threshold_watcher` and `mechanism` hold pointers to the std::vectors (not the underlying arrays) which are dereferenced before use. 
- The mechanism API functions have been renamed. 
- A unit test is also added that checks the interpolation behavior of the `threshold_watcher`.

Fixes #1251 
64001961
Name Last commit Last update
..