Closed dankelley closed 7 years ago
Oh, the in_ocean
part looks very simple (https://github.com/TEOS-10/GSW-Matlab/blob/master/Toolbox/library/gsw_SAAR.m#L230). Thanks, @PaulMBarker, for putting the source code into GH.
I'm closing this because it does not segfault. (I won't bother raising an issue on the fact that the R function gsw_SAAR
only makes a reasonable guess on in_ocean
, because that problem is documented in the docs for the function. I suppose a full solution awaits coding of this in_ocean
part in Fortran and then in C ... stages that are beyond my present purview.
In a discussion of the Python (and C) versions -- see https://github.com/TEOS-10/GSW-C/pull/2#issuecomment-284603324 -- it is seen that
gsw_saar()
can segfault sometimes in the C version.I wanted to test this in the R version. It seems not to be a problem, with the
develop
branch commit f25c9b76eadfa6427358ee47407c3b224155c85b. (But note: I have not decided whether to call thisgsw_saar()
orgsw_SAAR()
. At the moment it is the latter, but I reserve the "right" to change it in the next few days.)