You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In model_parser.H, the locate() function returns loc = ihi, which would be the index of the zone to the right of the input r. This means that our linear interpolation should use loc-1 and loc, but we are using loc and loc+1. Since we are linear and are not clamping we never noticed the issue.
For the cubic interpolation in #2659, this one-off indexing causes an issue.
The text was updated successfully, but these errors were encountered:
In
model_parser.H
, thelocate()
function returnsloc = ihi
, which would be the index of the zone to the right of the inputr
. This means that our linear interpolation should useloc-1
andloc
, but we are usingloc
andloc+1
. Since we are linear and are not clamping we never noticed the issue.For the cubic interpolation in #2659, this one-off indexing causes an issue.
The text was updated successfully, but these errors were encountered: