Skip to content
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

gsw_C_from_SP should check that 0 <= SP <= 42 #14

Open
richardsc opened this issue Dec 30, 2021 · 0 comments
Open

gsw_C_from_SP should check that 0 <= SP <= 42 #14

richardsc opened this issue Dec 30, 2021 · 0 comments

Comments

@richardsc
Copy link

Discussed originally for the TEOS-10/GSW-C#48, the idea is to update the following in gsw_C_from_SP() to restrict to the range of 0 to 42:

% This line ensures that SP is non-negative.
if any(SP < 0)
    error('gsw_C_from_SP: SP must be non-negative!')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant