[1873] | 1 | !> @file interaction_droplets_ptq.f90 |
---|
[2000] | 2 | !------------------------------------------------------------------------------! |
---|
[1036] | 3 | ! This file is part of PALM. |
---|
| 4 | ! |
---|
[2000] | 5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
| 6 | ! terms of the GNU General Public License as published by the Free Software |
---|
| 7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
| 8 | ! version. |
---|
[1036] | 9 | ! |
---|
| 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
[1818] | 17 | ! Copyright 1997-2016 Leibniz Universitaet Hannover |
---|
[2000] | 18 | !------------------------------------------------------------------------------! |
---|
[1036] | 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[2000] | 22 | ! Forced header and separation lines into 80 columns |
---|
[1846] | 23 | ! |
---|
[1] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3] | 26 | ! $Id: interaction_droplets_ptq.f90 2000 2016-08-20 18:09:15Z knoop $ |
---|
[800] | 27 | ! |
---|
[1874] | 28 | ! 1873 2016-04-18 14:50:06Z maronga |
---|
| 29 | ! Module renamed (removed _mod) |
---|
| 30 | ! |
---|
| 31 | ! |
---|
[1851] | 32 | ! 1850 2016-04-08 13:29:27Z maronga |
---|
| 33 | ! Module renamed |
---|
| 34 | ! |
---|
| 35 | ! |
---|
[1846] | 36 | ! 1845 2016-04-08 08:29:13Z raasch |
---|
| 37 | ! nzb_2d replaced by nzb_s_inner |
---|
| 38 | ! |
---|
[1823] | 39 | ! 1822 2016-04-07 07:49:42Z hoffmann |
---|
| 40 | ! Unused variables removed. |
---|
| 41 | ! |
---|
[1780] | 42 | ! 1779 2016-03-03 08:01:28Z raasch |
---|
| 43 | ! bugfix: module procedure names shortened to avoid Intel compiler warnings |
---|
| 44 | ! about too long names |
---|
| 45 | ! |
---|
[1683] | 46 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 47 | ! Code annotations made doxygen readable |
---|
| 48 | ! |
---|
[1321] | 49 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
| 50 | ! ONLY-attribute added to USE-statements, |
---|
| 51 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
| 52 | ! kinds are defined in new module kinds, |
---|
| 53 | ! revision history before 2012 removed, |
---|
| 54 | ! comment fields (!:) to be used for variable explanations added to |
---|
| 55 | ! all variable declaration statements |
---|
| 56 | ! |
---|
[1037] | 57 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 58 | ! code put under GPL (PALM 3.9) |
---|
| 59 | ! |
---|
[800] | 60 | ! 799 2011-12-21 17:48:03Z franke |
---|
| 61 | ! Bugfix: pt_d_t(k) was missing in calculation of pt_p |
---|
| 62 | ! |
---|
[3] | 63 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 64 | ! |
---|
[1] | 65 | ! Revision 1.1 2005/06/26 19:57:47 raasch |
---|
| 66 | ! Initial revision |
---|
| 67 | ! |
---|
| 68 | ! |
---|
| 69 | ! Description: |
---|
| 70 | ! ------------ |
---|
[1682] | 71 | !> Release of latent heat and change of specific humidity due to condensation / |
---|
| 72 | !> evaporation of droplets. |
---|
[1] | 73 | !------------------------------------------------------------------------------! |
---|
[1682] | 74 | MODULE interaction_droplets_ptq_mod |
---|
| 75 | |
---|
[1] | 76 | |
---|
| 77 | PRIVATE |
---|
| 78 | PUBLIC interaction_droplets_ptq |
---|
| 79 | |
---|
| 80 | INTERFACE interaction_droplets_ptq |
---|
[1779] | 81 | ! |
---|
| 82 | !-- Internal names shortened in order ro avoid Intel compiler messages |
---|
| 83 | !-- about too long names |
---|
| 84 | MODULE PROCEDURE i_droplets_ptq |
---|
| 85 | MODULE PROCEDURE i_droplets_ptq_ij |
---|
[1] | 86 | END INTERFACE interaction_droplets_ptq |
---|
| 87 | |
---|
| 88 | CONTAINS |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | !------------------------------------------------------------------------------! |
---|
[1682] | 92 | ! Description: |
---|
| 93 | ! ------------ |
---|
| 94 | !> Call for all grid points |
---|
[1] | 95 | !------------------------------------------------------------------------------! |
---|
[1779] | 96 | SUBROUTINE i_droplets_ptq |
---|
[1] | 97 | |
---|
[1320] | 98 | USE arrays_3d, & |
---|
| 99 | ONLY: pt_p, ql_c, q_p |
---|
| 100 | |
---|
| 101 | USE cloud_parameters, & |
---|
| 102 | ONLY: l_d_cp, pt_d_t |
---|
| 103 | |
---|
| 104 | USE indices, & |
---|
[1845] | 105 | ONLY: nxl, nxr, nyn, nys, nzb_s_inner, nzt |
---|
[1320] | 106 | |
---|
| 107 | USE kinds |
---|
[1] | 108 | |
---|
| 109 | USE pegrid |
---|
| 110 | |
---|
| 111 | IMPLICIT NONE |
---|
| 112 | |
---|
[1682] | 113 | INTEGER(iwp) :: i !< |
---|
| 114 | INTEGER(iwp) :: j !< |
---|
| 115 | INTEGER(iwp) :: k !< |
---|
[1] | 116 | |
---|
| 117 | |
---|
| 118 | DO i = nxl, nxr |
---|
| 119 | DO j = nys, nyn |
---|
[1845] | 120 | DO k = nzb_s_inner(j,i)+1, nzt |
---|
[1] | 121 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
[799] | 122 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 123 | ENDDO |
---|
| 124 | ENDDO |
---|
| 125 | ENDDO |
---|
| 126 | |
---|
[1779] | 127 | END SUBROUTINE i_droplets_ptq |
---|
[1] | 128 | |
---|
| 129 | |
---|
| 130 | !------------------------------------------------------------------------------! |
---|
[1682] | 131 | ! Description: |
---|
| 132 | ! ------------ |
---|
| 133 | !> Call for grid point i,j |
---|
[1] | 134 | !------------------------------------------------------------------------------! |
---|
[1779] | 135 | SUBROUTINE i_droplets_ptq_ij( i, j ) |
---|
[1] | 136 | |
---|
[1320] | 137 | USE arrays_3d, & |
---|
| 138 | ONLY: pt_p, ql_c, q_p |
---|
[1] | 139 | |
---|
[1320] | 140 | USE cloud_parameters, & |
---|
| 141 | ONLY: l_d_cp, pt_d_t |
---|
| 142 | |
---|
| 143 | USE indices, & |
---|
[1845] | 144 | ONLY: nzb_s_inner, nzt |
---|
[1320] | 145 | |
---|
| 146 | USE kinds, & |
---|
| 147 | ONLY: iwp, wp |
---|
| 148 | |
---|
[1] | 149 | USE pegrid |
---|
| 150 | |
---|
| 151 | IMPLICIT NONE |
---|
| 152 | |
---|
[1682] | 153 | INTEGER(iwp) :: i !< |
---|
| 154 | INTEGER(iwp) :: j !< |
---|
| 155 | INTEGER(iwp) :: k !< |
---|
[1] | 156 | |
---|
| 157 | |
---|
[1845] | 158 | DO k = nzb_s_inner(j,i)+1, nzt |
---|
[1] | 159 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
[799] | 160 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 161 | ENDDO |
---|
| 162 | |
---|
[1779] | 163 | END SUBROUTINE i_droplets_ptq_ij |
---|
[1] | 164 | |
---|
| 165 | END MODULE interaction_droplets_ptq_mod |
---|