Calc heating rate.
61 integer,
intent(in) :: KA, KS, KE
62 integer,
intent(in) :: IA, IS, IE
63 integer,
intent(in) :: JA, JS, JE
65 real(RP),
intent(in) :: flux_rad(KA,IA,JA,2,2)
66 real(RP),
intent(in) :: DENS (KA,IA,JA)
67 real(RP),
intent(in) :: TEMP (KA,IA,JA)
68 real(RP),
intent(in) :: CVtot (KA,IA,JA)
69 real(RP),
intent(in) :: FZ (0:KA,IA,JA)
71 real(RP),
intent(out) :: RHOH(KA,IA,JA)
73 real(RP),
intent(out),
optional :: TEMP_t(KA,IA,JA,3)
75 real(RP) :: RHOH_LW, RHOH_SW
80 if (
present(temp_t) )
then
94 ) / ( fz(k,i,j) - fz(k-1,i,j) )
98 ) / ( fz(k,i,j) - fz(k-1,i,j) )
100 rhoh(k,i,j) = rhoh_lw + rhoh_sw
102 temp_t(k,i,j,
i_lw) = rhoh_lw / dens(k,i,j) / cvtot(k,i,j) * 86400.0_rp
103 temp_t(k,i,j,
i_sw) = rhoh_sw / dens(k,i,j) / cvtot(k,i,j) * 86400.0_rp
105 temp_t(k,i,j,3) = temp_t(k,i,j,
i_lw) + temp_t(k,i,j,
i_sw)
126 ) / ( fz(k,i,j) - fz(k-1,i,j) )
130 ) / ( fz(k,i,j) - fz(k-1,i,j) )
132 rhoh(k,i,j) = rhoh_lw + rhoh_sw