ConstAccel::evalParams()
computes wrong k_grid
when ts[i]
is an element in m_ts
#230
Labels
ConstAccel::evalParams()
computes wrong k_grid
when ts[i]
is an element in m_ts
#230
Describe the bug
Based on the description, the function should find
k_grid
s.tm_ts[k_grid] <= ts[i] < m_ts[k_grid + 1]
but it doesn't.To Reproduce
Try this code snippet
The last line outputs
ts: 0.2, k_grid: 1
Expected behavior
The correct
k_grid
should be 3 instead of 2.Version
35f8c7d5e245517fb4e0031a3c890934792fdfc1
The text was updated successfully, but these errors were encountered: