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
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:
Did you run "in funnel" to validate your parameters?
/***************************************************************************
% gsw_geo_strf_dyn_height dynamic height anomaly
% (75-term equation)
%==========================================================================
% Note that the 75-term equation has been fitted in a restricted range of
% parameter space, and is most accurate inside the "oceanographic funnel"
% described in McDougall et al. (2003). For dynamical oceanography we may
% take the 75-term rational function expression for specific volume as
% essentially reflecting the full accuracy of TEOS-10. The GSW library
% function "gsw_infunnel(SA,CT,p)" is avaialble to be used if one wants to
% test if some of one's data lies outside this "funnel".
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: