!> @file interaction_droplets_ptq.f90 !--------------------------------------------------------------------------------! ! This file is part of PALM. ! ! PALM is free software: you can redistribute it and/or modify it under the terms ! of the GNU General Public License as published by the Free Software Foundation, ! either version 3 of the License, or (at your option) any later version. ! ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License along with ! PALM. If not, see . ! ! Copyright 1997-2016 Leibniz Universitaet Hannover !--------------------------------------------------------------------------------! ! ! Current revisions: ! ----------------- ! ! ! Former revisions: ! ----------------- ! $Id: interaction_droplets_ptq.f90 1874 2016-04-18 14:51:10Z suehring $ ! ! 1873 2016-04-18 14:50:06Z maronga ! Module renamed (removed _mod) ! ! ! 1850 2016-04-08 13:29:27Z maronga ! Module renamed ! ! ! 1845 2016-04-08 08:29:13Z raasch ! nzb_2d replaced by nzb_s_inner ! ! 1822 2016-04-07 07:49:42Z hoffmann ! Unused variables removed. ! ! 1779 2016-03-03 08:01:28Z raasch ! bugfix: module procedure names shortened to avoid Intel compiler warnings ! about too long names ! ! 1682 2015-10-07 23:56:08Z knoop ! Code annotations made doxygen readable ! ! 1320 2014-03-20 08:40:49Z raasch ! ONLY-attribute added to USE-statements, ! kind-parameters added to all INTEGER and REAL declaration statements, ! kinds are defined in new module kinds, ! revision history before 2012 removed, ! comment fields (!:) to be used for variable explanations added to ! all variable declaration statements ! ! 1036 2012-10-22 13:43:42Z raasch ! code put under GPL (PALM 3.9) ! ! 799 2011-12-21 17:48:03Z franke ! Bugfix: pt_d_t(k) was missing in calculation of pt_p ! ! RCS Log replace by Id keyword, revision history cleaned up ! ! Revision 1.1 2005/06/26 19:57:47 raasch ! Initial revision ! ! ! Description: ! ------------ !> Release of latent heat and change of specific humidity due to condensation / !> evaporation of droplets. !------------------------------------------------------------------------------! MODULE interaction_droplets_ptq_mod PRIVATE PUBLIC interaction_droplets_ptq INTERFACE interaction_droplets_ptq ! !-- Internal names shortened in order ro avoid Intel compiler messages !-- about too long names MODULE PROCEDURE i_droplets_ptq MODULE PROCEDURE i_droplets_ptq_ij END INTERFACE interaction_droplets_ptq CONTAINS !------------------------------------------------------------------------------! ! Description: ! ------------ !> Call for all grid points !------------------------------------------------------------------------------! SUBROUTINE i_droplets_ptq USE arrays_3d, & ONLY: pt_p, ql_c, q_p USE cloud_parameters, & ONLY: l_d_cp, pt_d_t USE indices, & ONLY: nxl, nxr, nyn, nys, nzb_s_inner, nzt USE kinds USE pegrid IMPLICIT NONE INTEGER(iwp) :: i !< INTEGER(iwp) :: j !< INTEGER(iwp) :: k !< DO i = nxl, nxr DO j = nys, nyn DO k = nzb_s_inner(j,i)+1, nzt q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) ENDDO ENDDO ENDDO END SUBROUTINE i_droplets_ptq !------------------------------------------------------------------------------! ! Description: ! ------------ !> Call for grid point i,j !------------------------------------------------------------------------------! SUBROUTINE i_droplets_ptq_ij( i, j ) USE arrays_3d, & ONLY: pt_p, ql_c, q_p USE cloud_parameters, & ONLY: l_d_cp, pt_d_t USE indices, & ONLY: nzb_s_inner, nzt USE kinds, & ONLY: iwp, wp USE pegrid IMPLICIT NONE INTEGER(iwp) :: i !< INTEGER(iwp) :: j !< INTEGER(iwp) :: k !< DO k = nzb_s_inner(j,i)+1, nzt q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) ENDDO END SUBROUTINE i_droplets_ptq_ij END MODULE interaction_droplets_ptq_mod