2 elemental function gsw_p_from_z (z, lat, geo_strf_dyn_height, &
3 sea_surface_geopotental)
37 real (r8),
intent(in) :: z, lat
38 real (r8),
intent(in),
optional :: geo_strf_dyn_height
39 real (r8),
intent(in),
optional :: sea_surface_geopotental
43 real (r8) :: c1, df_dp, f, g, gs, p, p_mid, p_old, sin2
44 real (r8) :: 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 gs = 9.780327_r8*(1.0_r8 + (5.2792e-3_r8 + (2.32e-5_r8*sin2))*sin2)
67 c1 = 5.25e-3_r8*sin2 + 5.92e-3_r8
68 p = -2.0_r8*z/((1.0_r8-c1) + sqrt((1.0_r8-c1)*(1.0_r8-c1) + 8.84e-6_r8*z))
76 p_mid = 0.5_r8*(p + p_old)
elemental real(r8) function gsw_p_from_z(z, lat, geo_strf_dyn_height, sea_surface_geopotental)
real(r8), parameter db2pa
real(r8), parameter gamma
real(r8), parameter deg2rad