-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault #1
Comments
Did you run "in funnel" to validate your parameters? % Note that the 75-term equation has been fitted in a restricted range of |
The k value cannot be zero. Set it to 1. The expected values are not correct. |
Function void TeosBase::gsw_util_sort_dbl(double *dArray,int nx,int *iArray,bool ASC) seems to be called with a partially uninitialized iArray parameter, for example in gsw_util_interp1q_int(), causing segmentation fault. The call is gsw_util_sort_dbl(xi, n, k); where the k array is only initialized from index n circa.
The following code was used as main() for a quick test:
The text was updated successfully, but these errors were encountered: