58 real(RP),
intent(in) :: dens (
ka,
ia,
ja)
59 real(RP),
intent(in) :: pres (
ka,
ia,
ja)
60 real(RP),
intent(in) :: cz (
ka,
ia,
ja)
61 real(RP),
intent(in) :: zsfc (
ia,
ja)
62 real(RP),
intent(in) :: z1 (
ia,
ja)
63 real(RP),
intent(out) :: sfc_dens(
ia,
ja)
64 real(RP),
intent(out) :: sfc_pres(
ia,
ja)
81 sfc_pres(i,j) = pres(
ks,i,j) &
82 + 0.5_rp * ( sfc_dens(i,j) + dens(
ks,i,j) ) * grav * z1(i,j)
93 real(RP),
intent(in) :: p
94 real(RP),
intent(in) :: x(3), y(3)
98 q = ( (p-x(2)) * (p-x(3)) ) / ( (x(1)-x(2)) * (x(1)-x(3)) ) * y(1) &
99 + ( (p-x(1)) * (p-x(3)) ) / ( (x(2)-x(1)) * (x(2)-x(3)) ) * y(2) &
100 + ( (p-x(1)) * (p-x(2)) ) / ( (x(3)-x(1)) * (x(3)-x(2)) ) * y(3)
module ATMOSPHERE / Bottom boundary treatment
integer, public ia
of whole cells: x, local, with HALO
integer, public ka
of whole cells: z, local, with HALO
real(rp), public const_grav
standard acceleration of gravity [m/s2]
subroutine, public atmos_bottom_estimate(DENS, PRES, CZ, Zsfc, Z1, SFC_DENS, SFC_PRES)
Calc bottom boundary of atmosphere (just above surface)
integer, public ks
start point of inner domain: z, local
real(rp) function lagrange_interp(p, x, y)
integer, public ja
of whole cells: y, local, with HALO