2 elemental function gsw_z_from_p (p, lat, geo_strf_dyn_height, &
3 sea_surface_geopotental)
38 real (r8),
intent(in) :: p, lat
39 real (r8),
intent(in),
optional :: geo_strf_dyn_height
40 real (r8),
intent(in),
optional :: sea_surface_geopotental
44 real (r8) :: a, b, c, g, sin2, gsdh, ssg
46 if (
present(geo_strf_dyn_height))
then 47 gsdh = geo_strf_dyn_height
52 if (
present(sea_surface_geopotental))
then 53 ssg = sea_surface_geopotental
64 b = 9.780327_r8*(1.0_r8 + (5.2792e-3_r8 + (2.32e-5_r8*sin2))*sin2)
elemental real(r8) function gsw_z_from_p(p, lat, geo_strf_dyn_height, sea_surface_geopotental)
real(r8), parameter gamma
real(r8), parameter deg2rad