FV3 Bundle
gsw_deltasa_from_sp.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_deltasa_from_sp (sp, p, long, lat)
3 !==========================================================================
4 !
5 ! Calculates Absolute Salinity Anomaly, deltaSA, from Practical Salinity, SP.
6 !
7 ! sp : Practical Salinity [unitless]
8 ! p : sea pressure [dbar]
9 ! long : longitude [deg E]
10 ! lat : latitude [deg N]
11 !
12 ! gsw_deltasa_from_sp : Absolute Salinty Anomaly [g/kg]
13 !--------------------------------------------------------------------------
14 
16 
18 
19 use gsw_mod_kinds
20 
21 implicit none
22 
23 real (r8), intent(in) :: sp, p, long, lat
24 
25 real (r8) :: gsw_deltasa_from_sp
26 
27 character (*), parameter :: func_name = "gsw_deltasa_from_sp"
28 
30 
32  gsw_deltasa_from_sp = gsw_error_code(1,func_name)
33 
34 return
35 end function
36 
37 !--------------------------------------------------------------------------
integer, parameter, public long
Definition: Type_Kinds.f90:76
real(r8), parameter, public gsw_error_limit
elemental real(r8) function gsw_deltasa_from_sp(sp, p, long, lat)
elemental real(r8) function, public gsw_error_code(err_num, func_name, error_code)